]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/lint-removed.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / lint-removed.rs
index e196e128b17128607d6ab5e3c2fed9b8bbd940ac..9069356604131a789305a1a10202d9ce5afdfc24 100644 (file)
@@ -8,9 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// The raw_pointer_derived lint only warns about its own removal
+// The raw_pointer_derived lint was removed, but is now reported by
+// the renamed_and_removed_lints lint, which means it's a warning by
+// default, and allowed in cargo dependency builds.
 // cc #30346
 
 #[deny(raw_pointer_derive)] //~ WARN raw_pointer_derive has been removed
-#[deny(warnings)]
+#[deny(unused_variables)]
 fn main() { let unused = (); } //~ ERR unused