Fix lint's handling of multiple warn attributes...

This commit is contained in:
Michael Sullivan 2012-06-04 18:07:26 -07:00
parent 1e8f501343
commit a405ff9bf6

View File

@ -207,7 +207,7 @@ impl methods for ctxt {
// if many attributes are set, but this shouldn't
// actually be a problem...
new_ctxt = {is_default: false,
curr: clone_lint_modes(self.curr)
curr: clone_lint_modes(new_ctxt.curr)
with new_ctxt};
new_ctxt.set_level(lint, new_level);
}