Skip to content

Commit 55a653d

Browse files
committed
removed linting for dyn_trait
1 parent 0efb567 commit 55a653d

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/librustc/hir/lowering.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,15 +4107,13 @@ impl<'a> LoweringContext<'a> {
41074107
}
41084108

41094109
fn maybe_lint_bare_trait(&self, span: Span, id: NodeId, is_global: bool) {
4110-
if self.sess.features_untracked().dyn_trait {
4111-
self.sess.buffer_lint_with_diagnostic(
4112-
builtin::BARE_TRAIT_OBJECT,
4113-
id,
4114-
span,
4115-
"trait objects without an explicit `dyn` are deprecated",
4116-
builtin::BuiltinLintDiagnostics::BareTraitObject(span, is_global),
4117-
)
4118-
}
4110+
self.sess.buffer_lint_with_diagnostic(
4111+
builtin::BARE_TRAIT_OBJECT,
4112+
id,
4113+
span,
4114+
"trait objects without an explicit `dyn` are deprecated",
4115+
builtin::BuiltinLintDiagnostics::BareTraitObject(span, is_global),
4116+
)
41194117
}
41204118

41214119
fn wrap_in_try_constructor(

src/librustc_typeck/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ This API is completely unstable and subject to change.
8484
#![feature(slice_patterns)]
8585
#![feature(slice_sort_by_cached_key)]
8686
#![feature(never_type)]
87-
#![feature(underscore_lifetimes)]
8887

8988
#[macro_use] extern crate log;
9089
#[macro_use] extern crate syntax;

0 commit comments

Comments
 (0)