From e80dcf700b97d6d9899a291357a21e22d965c9c0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 3 Jul 2013 23:26:38 -0700 Subject: [PATCH] Use #[allow(warnings)] in rusti instead of explicitly listing warnings --- src/librusti/program.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/librusti/program.rs b/src/librusti/program.rs index 869b3472422..e15cc04fa9b 100644 --- a/src/librusti/program.rs +++ b/src/librusti/program.rs @@ -196,21 +196,7 @@ impl Program { // 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