Make '-A warnings' apply to all warnings, including feature gate warnings

This commit is contained in:
Brian Anderson
2015-01-26 15:42:24 -08:00
parent 5a6fb8eb98
commit abc56a011a
15 changed files with 106 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ pub struct ParseSess {
pub fn new_parse_sess() -> ParseSess {
ParseSess {
span_diagnostic: mk_span_handler(default_handler(Auto, None), CodeMap::new()),
span_diagnostic: mk_span_handler(default_handler(Auto, None, true), CodeMap::new()),
included_mod_stack: RefCell::new(Vec::new()),
node_id: Cell::new(1),
}