rustc: Add lint for misplaced crate attributes

This commit is contained in:
klutzy 2013-11-05 00:35:56 +09:00
parent ffaee0fd96
commit 6ff697d393
2 changed files with 31 additions and 0 deletions

View file

@ -63,6 +63,7 @@ while cur < len(lines):
#[ allow(unused_variable) ];\n
#[ allow(dead_assignment) ];\n
#[ allow(unused_mut) ];\n
#[ allow(attribute_usage) ];\n
#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];\n
""" + block
if xfail: