]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rust-2018/remove-extern-crate.rs
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / remove-extern-crate.rs
index fb2217df0005d4e8c7e250a54cea76473d8ea222..298b16140264a5b160e1f80f7b4b87e59447fc39 100644 (file)
@@ -1,12 +1,16 @@
 // run-rustfix
 // edition:2018
-// compile-pass
+// build-pass (FIXME(62277): could be check-pass?)
 // aux-build:remove-extern-crate.rs
 // compile-flags:--extern remove_extern_crate
 
 #![warn(rust_2018_idioms)]
 
 extern crate core;
+// Shouldn't suggest changing to `use`, as `another_name`
+// would no longer be added to the prelude which could cause
+// compilation errors for imports that use `another_name` in other
+// modules. See #57672.
 extern crate core as another_name;
 use remove_extern_crate;
 #[macro_use]