about summary refs log tree commit diff
path: root/src/librustc/lint/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/lint/context.rs')
-rw-r--r--src/librustc/lint/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index 9aa6395b7b2..9688447dc04 100644
--- a/src/librustc/lint/context.rs
+++ b/src/librustc/lint/context.rs
@@ -212,7 +212,7 @@ impl LintStore {
     fn maybe_stage_features(&mut self, sess: &Session) {
         let lvl = match sess.opts.unstable_features {
             UnstableFeatures::Default => return,
-            UnstableFeatures::Disallow => Warn,
+            UnstableFeatures::Disallow => Forbid,
             UnstableFeatures::Cheat => Allow
         };
         match self.by_name.get("unstable_features") {