-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Resolver: Batched Import Resolution #145108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LorrensP-2158466
wants to merge
8
commits into
rust-lang:master
Choose a base branch
from
LorrensP-2158466:batched-import-resolution
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ee4faf9
Resolver: Batched import resolution.
LorrensP-2158466 08235d4
Several logical changes.
LorrensP-2158466 2043b9c
Report glob errors in first phase of commit.
LorrensP-2158466 0a23ecc
disallow ambiguous names imported from external crates
LorrensP-2158466 c07c81e
bless test
LorrensP-2158466 51f18e4
revert change in `finalize_resolutions_in` + other small things
LorrensP-2158466 0bd2ce4
bless test for green CI
LorrensP-2158466 8f39eee
bless another test
LorrensP-2158466 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
LorrensP-2158466 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 |
---|---|---|
|
@@ -4,16 +4,16 @@ pub mod dsl { | |
mod range { | ||
pub fn date_range() {} | ||
} | ||
pub use self::range::*; //~ WARNING ambiguous glob re-exports | ||
pub use self::range::*; | ||
use super::prelude::*; | ||
} | ||
|
||
pub mod prelude { | ||
mod t { | ||
pub fn date_range() {} | ||
} | ||
pub use self::t::*; //~ WARNING ambiguous glob re-exports | ||
pub use super::dsl::*; | ||
pub use self::t::*; | ||
pub use super::dsl::*; //~ WARNING ambiguous glob re-exports | ||
} | ||
|
||
use dsl::*; | ||
|
@@ -23,6 +23,4 @@ fn main() { | |
date_range(); | ||
//~^ ERROR `date_range` 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! | ||
//~| ERROR `date_range` 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! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. First import not receiving the warning is the wrong part. |
||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,4 +1,4 @@ | ||
mod a { pub use crate::b::foo; } | ||
mod b { pub use crate::a::foo; } //~ ERROR unresolved import `crate::a::foo` | ||
mod a { pub use crate::b::foo; } //~ ERROR unresolved import `crate::b::foo` | ||
mod b { pub use crate::a::foo; } | ||
|
||
fn main() { println!("loop"); } |
This file contains hidden or 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 hidden or 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 hidden or 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,20 @@ | ||
error[E0603]: derive macro `Embed` is private | ||
--> $DIR/same-res-ambigious.rs:7:28 | ||
| | ||
LL | #[derive(ambigious_extern::Embed)] | ||
| ^^^^^ private derive macro | ||
| | ||
note: the derive macro `Embed` is defined here | ||
--> $DIR/auxiliary/same-res-ambigious-extern.rs:11:9 | ||
| | ||
LL | pub use RustEmbed as Embed; | ||
| ^^^^^^^^^ | ||
help: import `Embed` directly | ||
| | ||
LL - #[derive(ambigious_extern::Embed)] | ||
LL + #[derive(same_res_ambigious_extern_macro::RustEmbed)] | ||
| | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0603`. |
This file contains hidden or 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,11 +1,10 @@ | ||
//@ edition: 2018 | ||
//@ revisions: fail pass | ||
//@[pass] check-pass | ||
//@[pass] aux-crate: ambigious_extern=same-res-ambigious-extern.rs | ||
//@[fail] aux-crate: ambigious_extern=same-res-ambigious-extern-fail.rs | ||
// see https://github.com/rust-lang/rust/pull/147196 | ||
|
||
#[derive(ambigious_extern::Embed)] //[fail]~ ERROR: derive macro `Embed` is private | ||
#[derive(ambigious_extern::Embed)] //~ ERROR: derive macro `Embed` is private | ||
struct Foo{} | ||
|
||
fn main(){} |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.