]> git.lizzy.rs Git - rust.git/commitdiff
Use #[allow(warnings)] in rusti instead of explicitly listing warnings
authorAlex Crichton <alex@alexcrichton.com>
Thu, 4 Jul 2013 06:26:38 +0000 (23:26 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 4 Jul 2013 06:26:38 +0000 (23:26 -0700)
src/librusti/program.rs

index 869b3472422bc207f008f4df69909499e5ae7d4a..e15cc04fa9b7e8d048351e1ab75f45264e4d838b 100644 (file)
@@ -196,21 +196,7 @@ fn program_header(&self) -> ~str {
         // up front, disable lots of annoying lints, then include all global
         // state such as items, view items, and extern mods.
         let mut code = fmt!("
-            #[allow(ctypes)];
-            #[allow(heap_memory)];
-            #[allow(implicit_copies)];
-            #[allow(managed_heap_memory)];
-            #[allow(non_camel_case_types)];
-            #[allow(owned_heap_memory)];
-            #[allow(path_statement)];
-            #[allow(unrecognized_lint)];
-            #[allow(unused_imports)];
-            #[allow(while_true)];
-            #[allow(unused_variable)];
-            #[allow(dead_assignment)];
-            #[allow(unused_unsafe)];
-            #[allow(unused_mut)];
-            #[allow(unreachable_code)];
+            #[allow(warnings)];
 
             extern mod extra;
             %s // extern mods