diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-31 09:56:50 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-31 10:09:23 +0000 |
| commit | 03158f40d2fc66d41ae3432edbb644f939c892bf (patch) | |
| tree | da4ce7edf72c8e19cd233cea8c66ac9e6c929df2 /compiler/rustc_resolve/src | |
| parent | 5d90413d753b7c6a2cdab5c1df58cf52a38de33c (diff) | |
| download | rust-03158f40d2fc66d41ae3432edbb644f939c892bf.tar.gz rust-03158f40d2fc66d41ae3432edbb644f939c892bf.zip | |
Don't do `.edition().rust_*()`
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ impl<'a> Resolver<'a> { Applicability::MaybeIncorrect, )), ) - } else if self.session.edition().rust_2015() { + } else if self.session.rust_2015() { ( format!("maybe a missing crate `{ident}`?"), Some(( |
