Auto merge of #112494 - matthiaskrgr:rollup-xdf3om8, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #112297 (bootstrap: Disallow `--exclude test::std`) - #112298 (Update field-offset and enable unstable_offset_of) - #112335 (ci: Upgrade loongarch64-linux-gnu GCC to 13.1.0) - #112413 (Adjust span labels for `HIDDEN_GLOB_REEXPORTS`) - #112483 (Add deprecation warning to python versions <3.6 in x.py) r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
ef8ee73fc4
13 changed files with 106 additions and 88 deletions
|
|
@ -6,10 +6,10 @@ pub mod upstream_a {
|
|||
pub struct Bar {}
|
||||
}
|
||||
|
||||
pub use self::inner::*;
|
||||
|
||||
struct Foo;
|
||||
//~^ WARN private item shadows public glob re-export
|
||||
|
||||
pub use self::inner::*;
|
||||
}
|
||||
|
||||
pub mod upstream_b {
|
||||
|
|
|
|||
|
|
@ -1,31 +1,54 @@
|
|||
warning: private item shadows public glob re-export
|
||||
--> $DIR/hidden_glob_reexports.rs:11:5
|
||||
--> $DIR/hidden_glob_reexports.rs:9:5
|
||||
|
|
||||
LL | struct Foo;
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
note: the name `Foo` in the type namespace is supposed to be publicly re-exported here
|
||||
--> $DIR/hidden_glob_reexports.rs:12:13
|
||||
|
|
||||
LL | pub use self::inner::*;
|
||||
| -------------- the name `Foo` in the type namespace is supposed to be publicly re-exported here
|
||||
LL |
|
||||
LL | struct Foo;
|
||||
| ^^^^^^^^^^^ but the private item here shadows it
|
||||
| ^^^^^^^^^^^^^^
|
||||
note: but the private item here shadows it
|
||||
--> $DIR/hidden_glob_reexports.rs:9:5
|
||||
|
|
||||
LL | struct Foo;
|
||||
| ^^^^^^^^^^^
|
||||
= note: `#[warn(hidden_glob_reexports)]` on by default
|
||||
|
||||
warning: private item shadows public glob re-export
|
||||
--> $DIR/hidden_glob_reexports.rs:27:9
|
||||
|
|
||||
LL | pub use self::inner::*;
|
||||
| -------------- the name `Foo` in the type namespace is supposed to be publicly re-exported here
|
||||
LL |
|
||||
LL | use self::other::Foo;
|
||||
| ^^^^^^^^^^^^^^^^ but the private item here shadows it
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the name `Foo` in the type namespace is supposed to be publicly re-exported here
|
||||
--> $DIR/hidden_glob_reexports.rs:25:13
|
||||
|
|
||||
LL | pub use self::inner::*;
|
||||
| ^^^^^^^^^^^^^^
|
||||
note: but the private item here shadows it
|
||||
--> $DIR/hidden_glob_reexports.rs:27:9
|
||||
|
|
||||
LL | use self::other::Foo;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: private item shadows public glob re-export
|
||||
--> $DIR/hidden_glob_reexports.rs:40:9
|
||||
|
|
||||
LL | pub use self::no_def_id::*;
|
||||
| ------------------ the name `u8` in the type namespace is supposed to be publicly re-exported here
|
||||
LL |
|
||||
LL | use std::primitive::u8;
|
||||
| ^^^^^^^^^^^^^^^^^^ but the private item here shadows it
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the name `u8` in the type namespace is supposed to be publicly re-exported here
|
||||
--> $DIR/hidden_glob_reexports.rs:38:13
|
||||
|
|
||||
LL | pub use self::no_def_id::*;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
note: but the private item here shadows it
|
||||
--> $DIR/hidden_glob_reexports.rs:40:9
|
||||
|
|
||||
LL | use std::primitive::u8;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: 3 warnings emitted
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue