diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index db28773cbdc..a5c09b658fb 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -1717,7 +1717,7 @@ pub(crate) fn report_path_resolution_error( Applicability::MaybeIncorrect, )), ) - } else if self.session.edition().rust_2015() { + } else if self.session.rust_2015() { ( format!("maybe a missing crate `{ident}`?"), Some((