Closed
Description
Possibly macro related, not sure.
#![deny(rust_2018_idioms)]
use alloc_system;
#[global_allocator]
static ALLOC: alloc_system::System = alloc_system::System;
fn main() {}
error: `extern crate` is not idiomatic in the new edition
--> src/main.rs:6:1
|
6 | static ALLOC: alloc_system::System = alloc_system::System;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `use`
|
note: lint level defined here
--> src/main.rs:1:9
|
1 | #![deny(rust_2018_idioms)]
| ^^^^^^^^^^^^^^^^
= note: #[deny(unused_extern_crates)] implied by #[deny(rust_2018_idioms)]