-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: re-export ambiguity as warning
- Loading branch information
Showing
18 changed files
with
207 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
warning: `id` is ambiguous | ||
--> $DIR/ambiguous-2.rs:8:18 | ||
| | ||
LL | ambiguous_1::id(); | ||
| ^^ ambiguous name | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> | ||
= note: ambiguous because of it has some error in extern crate | ||
note: `id` could refer to the function defined here | ||
--> $DIR/auxiliary/../ambiguous-1.rs:24:9 | ||
| | ||
LL | pub use openssl::*; | ||
| ^^^^^^^ | ||
= note: `#[warn(ambiguous_glob_imports)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
warning: `id` is ambiguous | ||
--> $DIR/ambiguous-4.rs:7:25 | ||
| | ||
LL | ambiguous_4_extern::id(); | ||
| ^^ ambiguous name | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> | ||
= note: ambiguous because of it has some error in extern crate | ||
note: `id` could refer to the function defined here | ||
--> $DIR/auxiliary/../ambiguous-4-extern.rs:10:9 | ||
| | ||
LL | pub use evp::*; | ||
| ^^^ | ||
= note: `#[warn(ambiguous_glob_imports)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
warning: `error` is ambiguous | ||
--> $DIR/extern-with-ambiguous-2.rs:14:5 | ||
| | ||
LL | use error::*; | ||
| ^^^^^ ambiguous name | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> | ||
= note: ambiguous because of multiple glob imports of a name in the same module | ||
note: `error` could refer to the module imported here | ||
--> $DIR/extern-with-ambiguous-2.rs:12:5 | ||
| | ||
LL | use s::*; | ||
| ^^^^ | ||
= help: consider adding an explicit import of `error` to disambiguate | ||
note: `error` could also refer to the module imported here | ||
--> $DIR/extern-with-ambiguous-2.rs:13:5 | ||
| | ||
LL | use extern_with_ambiguous_2_extern::*; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= help: consider adding an explicit import of `error` to disambiguate | ||
= note: `#[warn(ambiguous_glob_imports)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
warning: `error` is ambiguous | ||
--> $DIR/extern-with-ambiguous-3.rs:15:5 | ||
| | ||
LL | use error::*; | ||
| ^^^^^ ambiguous name | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #114095 <https://github.com/rust-lang/rust/issues/114095> | ||
= note: ambiguous because of multiple glob imports of a name in the same module | ||
note: `error` could refer to the module imported here | ||
--> $DIR/extern-with-ambiguous-3.rs:13:5 | ||
| | ||
LL | use s::*; | ||
| ^^^^ | ||
= help: consider adding an explicit import of `error` to disambiguate | ||
note: `error` could also refer to the module imported here | ||
--> $DIR/extern-with-ambiguous-3.rs:14:5 | ||
| | ||
LL | use extern_with_ambiguous_3_extern::*; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= help: consider adding an explicit import of `error` to disambiguate | ||
= note: `#[warn(ambiguous_glob_imports)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
// check-pass | ||
// aux-build:glob-conflict.rs | ||
|
||
extern crate glob_conflict; | ||
|
||
fn main() { | ||
glob_conflict::f(); //~ ERROR cannot find function `f` in crate `glob_conflict` | ||
glob_conflict::glob::f(); //~ ERROR cannot find function `f` in module `glob_conflict::glob` | ||
glob_conflict::f(); | ||
//~^ WARNING `f` is ambiguous | ||
//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
glob_conflict::glob::f(); | ||
//~^ WARNING `f` is ambiguous | ||
//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
} |
Oops, something went wrong.