Skip to content

Commit 99afe26

Browse files
authored
Rollup merge of rust-lang#97787 - matthiaskrgr:e0432_explain, r=Dylan-DPC
E0432: rust 2018 -> rust 2018 or later in --explain message
2 parents 85617f1 + 343c135 commit 99afe26

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+6
-6
lines changed

compiler/rustc_error_codes/src/error_codes/E0432.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ In Rust 2015, paths in `use` statements are relative to the crate root. To
1010
import items relative to the current and parent modules, use the `self::` and
1111
`super::` prefixes, respectively.
1212

13-
In Rust 2018, paths in `use` statements are relative to the current module
14-
unless they begin with the name of a crate or a literal `crate::`, in which
15-
case they start from the crate root. As in Rust 2015 code, the `self::` and
16-
`super::` prefixes refer to the current and parent modules respectively.
13+
In Rust 2018 or later, paths in `use` statements are relative to the current
14+
module unless they begin with the name of a crate or a literal `crate::`, in
15+
which case they start from the crate root. As in Rust 2015 code, the `self::`
16+
and `super::` prefixes refer to the current and parent modules respectively.
1717

1818
Also verify that you didn't misspell the import name and that the import exists
1919
in the module from where you tried to import it. Example:
@@ -38,8 +38,8 @@ use core::any;
3838
# fn main() {}
3939
```
4040

41-
In Rust 2018 the `extern crate` declaration is not required and you can instead
42-
just `use` it:
41+
Since Rust 2018 the `extern crate` declaration is not required and
42+
you can instead just `use` it:
4343

4444
```edition2018
4545
use core::any; // No extern crate required in Rust 2018.

0 commit comments

Comments
 (0)