about summary refs log tree commit diff
path: root/src/librustc/hir
diff options
context:
space:
mode:
authorChristian Poveda <christianpoveda@protonmail.com>2018-04-13 17:07:33 -0500
committerChristian Poveda <christianpoveda@protonmail.com>2018-04-27 10:05:45 -0500
commit55a653dd359a6e5c8da7e47399310a79fd094932 (patch)
tree3020925a112a123393e4a8e124b49f6a20ce013b /src/librustc/hir
parent0efb5677d74451787a4dbd77fce1701c52c72a68 (diff)
downloadrust-55a653dd359a6e5c8da7e47399310a79fd094932.tar.gz
rust-55a653dd359a6e5c8da7e47399310a79fd094932.zip
removed linting for dyn_trait
Diffstat (limited to 'src/librustc/hir')
-rw-r--r--src/librustc/hir/lowering.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs
index 4023521147e..74fedd6bfba 100644
--- a/src/librustc/hir/lowering.rs
+++ b/src/librustc/hir/lowering.rs
@@ -4107,15 +4107,13 @@ impl<'a> LoweringContext<'a> {
     }
 
     fn maybe_lint_bare_trait(&self, span: Span, id: NodeId, is_global: bool) {
-        if self.sess.features_untracked().dyn_trait {
-            self.sess.buffer_lint_with_diagnostic(
-                builtin::BARE_TRAIT_OBJECT,
-                id,
-                span,
-                "trait objects without an explicit `dyn` are deprecated",
-                builtin::BuiltinLintDiagnostics::BareTraitObject(span, is_global),
-            )
-        }
+        self.sess.buffer_lint_with_diagnostic(
+            builtin::BARE_TRAIT_OBJECT,
+            id,
+            span,
+            "trait objects without an explicit `dyn` are deprecated",
+            builtin::BuiltinLintDiagnostics::BareTraitObject(span, is_global),
+        )
     }
 
     fn wrap_in_try_constructor(