Skip to content

Commit 03158f4

Browse files
committed
Don't do .edition().rust_*()
1 parent 5d90413 commit 03158f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ impl<'a> Resolver<'a> {
17171717
Applicability::MaybeIncorrect,
17181718
)),
17191719
)
1720-
} else if self.session.edition().rust_2015() {
1720+
} else if self.session.rust_2015() {
17211721
(
17221722
format!("maybe a missing crate `{ident}`?"),
17231723
Some((

0 commit comments

Comments
 (0)