]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/imports/extern-crate-used.rs
Do not suggest use over extern crate w/ alias.
[rust.git] / src / test / ui / imports / extern-crate-used.rs
index 2d91cbc00f27d492bb11387582a0bd4b829c35c4..26150c7d4a16b77de5f4a76803006e4b48e3bf24 100644 (file)
@@ -5,10 +5,14 @@
 
 #![deny(unused_extern_crates)]
 
-extern crate core as iso1; //~ ERROR `extern crate` is not idiomatic in the new edition
-extern crate core as iso2; //~ ERROR `extern crate` is not idiomatic in the new edition
-extern crate core as iso3; //~ ERROR `extern crate` is not idiomatic in the new edition
-extern crate core as iso4; //~ ERROR `extern crate` is not idiomatic in the new edition
+// Shouldn't suggest changing to `use`, as new name
+// would no longer be added to the prelude which could cause
+// compilation errors for imports that use the new name in
+// other modules. See #57672.
+extern crate core as iso1;
+extern crate core as iso2;
+extern crate core as iso3;
+extern crate core as iso4;
 
 // Doesn't introduce its extern prelude entry, so it's still considered unused.
 extern crate core; //~ ERROR unused extern crate