fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
710 B18 linesraw
1error[E0659]: `std` is ambiguous (glob import vs any other name from outer scope during import/macro resolution)
2  --> $DIR/macro-path-prelude-shadowing.rs:29:9
3   |
4LL |         std::panic!();
5   |         ^^^ ambiguous name
6   |
7   = note: `std` could refer to a built-in crate
8note: `std` could also refer to the module imported here
9  --> $DIR/macro-path-prelude-shadowing.rs:27:9
10   |
11LL |     use m2::*; // glob-import user-defined `std`
12   |         ^^^^^
13   = help: consider adding an explicit import of `std` to disambiguate
14   = help: or use `self::std` to refer to this module unambiguously
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0659`.