about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-01-26 15:42:24 -0800
committerBrian Anderson <banderson@mozilla.com>2015-01-26 16:29:27 -0800
commitabc56a011a0c00ac85a896957ff6182d3d86f4aa (patch)
tree1fef69ab4bc5a385d29b84fa2b28b572f46bd9d3 /src/libsyntax/parse
parent5a6fb8eb98f1e8d7188100ef83f25d01f30fff9f (diff)
downloadrust-abc56a011a0c00ac85a896957ff6182d3d86f4aa.tar.gz
rust-abc56a011a0c00ac85a896957ff6182d3d86f4aa.zip
Make '-A warnings' apply to all warnings, including feature gate warnings
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index 8cb7ee5b337..326aa1f3fc9 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -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),
     }