diff options
| author | Michael Goulet <michael@errs.io> | 2023-07-16 18:59:36 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-07-19 16:38:35 +0000 |
| commit | 846cc63e3802171e0e412fadac269bf71c843ef0 (patch) | |
| tree | 0bbd804ed8c97bc4486bec0aea07fe3f76e4df9c /compiler/rustc_resolve/src/ident.rs | |
| parent | 77e24f90f599070af2d8051ef9adad7fe528dd78 (diff) | |
| download | rust-846cc63e3802171e0e412fadac269bf71c843ef0.tar.gz rust-846cc63e3802171e0e412fadac269bf71c843ef0.zip | |
Make it clearer that edition functions are >=, not ==
Diffstat (limited to 'compiler/rustc_resolve/src/ident.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/ident.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/ident.rs b/compiler/rustc_resolve/src/ident.rs index 520fab1f0c8..de431444769 100644 --- a/compiler/rustc_resolve/src/ident.rs +++ b/compiler/rustc_resolve/src/ident.rs @@ -1417,13 +1417,13 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { )); continue; } - if name == kw::PathRoot && ident.span.rust_2018() { + if name == kw::PathRoot && ident.span.at_least_rust_2018() { module = Some(ModuleOrUniformRoot::ExternPrelude); continue; } if name == kw::PathRoot && ident.span.is_rust_2015() - && self.tcx.sess.rust_2018() + && self.tcx.sess.at_least_rust_2018() { // `::a::b` from 2015 macro on 2018 global edition module = Some(ModuleOrUniformRoot::CrateRootAndExternPrelude); |
