Skip to content

Commit e80dcf7

Browse files
committed
Use #[allow(warnings)] in rusti instead of explicitly listing warnings
1 parent dd4f6bb commit e80dcf7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/librusti/program.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,21 +196,7 @@ impl Program {
196196
// up front, disable lots of annoying lints, then include all global
197197
// state such as items, view items, and extern mods.
198198
let mut code = fmt!("
199-
#[allow(ctypes)];
200-
#[allow(heap_memory)];
201-
#[allow(implicit_copies)];
202-
#[allow(managed_heap_memory)];
203-
#[allow(non_camel_case_types)];
204-
#[allow(owned_heap_memory)];
205-
#[allow(path_statement)];
206-
#[allow(unrecognized_lint)];
207-
#[allow(unused_imports)];
208-
#[allow(while_true)];
209-
#[allow(unused_variable)];
210-
#[allow(dead_assignment)];
211-
#[allow(unused_unsafe)];
212-
#[allow(unused_mut)];
213-
#[allow(unreachable_code)];
199+
#[allow(warnings)];
214200
215201
extern mod extra;
216202
%s // extern mods

0 commit comments

Comments
 (0)