Rollup merge of #107508 - WaffleLapkin:uneq'15, r=oli-obk

`Edition` micro refactor

r? ``@oli-obk``
This commit is contained in:
Guillaume Gomez 2023-01-31 23:38:53 +01:00 committed by GitHub
commit fe44f3bdd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 26 deletions

View file

@ -1717,7 +1717,7 @@ impl<'a> Resolver<'a> {
Applicability::MaybeIncorrect,
)),
)
} else if self.session.edition() == Edition::Edition2015 {
} else if self.session.rust_2015() {
(
format!("maybe a missing crate `{ident}`?"),
Some((