Skip to content

Commit a405ff9

Browse files
committed
Fix lint's handling of multiple warn attributes...
1 parent 1e8f501 commit a405ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl methods for ctxt {
207207
// if many attributes are set, but this shouldn't
208208
// actually be a problem...
209209
new_ctxt = {is_default: false,
210-
curr: clone_lint_modes(self.curr)
210+
curr: clone_lint_modes(new_ctxt.curr)
211211
with new_ctxt};
212212
new_ctxt.set_level(lint, new_level);
213213
}

0 commit comments

Comments
 (0)