diff options
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 21c9721e3c6..6ce03a9c564 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1465,17 +1465,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { )) } ImplTraitContext::Disallowed(pos) => { - let allowed_in = if self.sess.features_untracked().impl_trait_in_bindings { - "bindings or function and inherent method return types" - } else { - "function and inherent method return types" - }; let mut err = struct_span_err!( self.sess, t.span, E0562, "`impl Trait` not allowed outside of {}", - allowed_in, + "function and inherent method return types", ); if pos == ImplTraitPosition::Binding && self.sess.is_nightly_build() { err.help( |
