-
Notifications
You must be signed in to change notification settings - Fork 13.3k
add several resolution test cases #120195
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
The |
eb8dbbe
to
6fc06b8
Compare
Do you think we should create an issue addressing the edge case mentioned in #114682 (comment)? |
Maybe, I just don't understand what is the issue with #114682 (comment). |
// extern-crate.rs
mod d {
pub fn max() {}
pub(crate) mod max {}
}
mod e {
pub type max = i32;
}
pub use self::d::*;
pub use self::e::*;
// code.rs
use extern_crate::max; // refer to the fn `extern_crate::d::max`
fn main() {} Given the current logic, |
In any case, adding a test for this would be useful. |
6fc06b8
to
851d4c4
Compare
Additional details have been appended to |
@bors r+ |
…ase, r=petrochenkov add several resolution test cases r? `@petrochenkov`
Rollup of 12 pull requests Successful merges: - rust-lang#112806 (Small code improvements in `collect_intra_doc_links.rs`) - rust-lang#119460 (coverage: Never emit improperly-ordered coverage regions) - rust-lang#119766 (Split tait and impl trait in assoc items logic) - rust-lang#120062 (llvm: change data layout bug to an error and make it trigger more) - rust-lang#120099 (linker: Refactor library linking methods in `trait Linker`) - rust-lang#120139 (Do not normalize closure signature when building `FnOnce` shim) - rust-lang#120160 (Manually implement derived `NonZero` traits.) - rust-lang#120171 (Fix assume and assert in jump threading) - rust-lang#120183 (Add `#[coverage(off)]` to closures introduced by `#[test]` and `#[bench]`) - rust-lang#120195 (add several resolution test cases) - rust-lang#120259 (Split Diagnostics for Uncommon Codepoints: Add List to Display Characters Involved) - rust-lang#120261 (Provide structured suggestion to use trait objects in some cases of `if` arm type divergence) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 9 pull requests Successful merges: - rust-lang#112806 (Small code improvements in `collect_intra_doc_links.rs`) - rust-lang#119766 (Split tait and impl trait in assoc items logic) - rust-lang#120139 (Do not normalize closure signature when building `FnOnce` shim) - rust-lang#120160 (Manually implement derived `NonZero` traits.) - rust-lang#120171 (Fix assume and assert in jump threading) - rust-lang#120183 (Add `#[coverage(off)]` to closures introduced by `#[test]` and `#[bench]`) - rust-lang#120195 (add several resolution test cases) - rust-lang#120259 (Split Diagnostics for Uncommon Codepoints: Add List to Display Characters Involved) - rust-lang#120261 (Provide structured suggestion to use trait objects in some cases of `if` arm type divergence) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#120195 - bvanjoi:add-some-resolution-test-case, r=petrochenkov add several resolution test cases r? ``@petrochenkov``
r? @petrochenkov