fix: let glob imports override other globs' visibility #17715
Merged
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.
Follow up to #14930
Fixes #11858
Fixes #14902
Fixes #17704
I haven't reworked the code here at all - I don't feel confident in the codebase to do so - just rebased it onto the current main branch and fixed conflicts.
I'm not entirely sure I understand the structure of the
check
function incrates/hir-def/src/nameres
tests. I think the change to the test expectation from #14930 is correct, marking thecrate::reexport::inner
imports withi
, and I understand it to mean there's a specific token in the import that we can match it to (in this case,Trait
,function
andmakro
ofpub use crate::defs::{Trait, function, makro};
respectively), but I had some trouble understanding the meaning of the different parts ofPerNs
to be sure.Does this make sense?
I tested building and using RA locally with
cargo xtask install
and after this change the documentation forarrow_array::ArrowPrimitiveType
seems to be picked up correctly!