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_middle/src | |
| parent | 77e24f90f599070af2d8051ef9adad7fe528dd78 (diff) | |
Make it clearer that edition functions are >=, not ==
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/print/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs index 70eb389b406..e5633223464 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -1932,7 +1932,7 @@ impl<'tcx> Printer<'tcx> for FmtPrinter<'_, 'tcx> { fn path_crate(mut self, cnum: CrateNum) -> Result<Self::Path, Self::Error> { self.empty_path = true; if cnum == LOCAL_CRATE { - if self.tcx.sess.rust_2018() { + if self.tcx.sess.at_least_rust_2018() { // We add the `crate::` keyword on Rust 2018, only when desired. if SHOULD_PREFIX_WITH_CRATE.with(|flag| flag.get()) { write!(self, "{}", kw::Crate)?; |
