-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Issue 56128 segment id ice nightly #56143
Merged
bors
merged 10 commits into
rust-lang:master
from
nikomatsakis:issue-56128-segment-id-ice-nightly
Nov 22, 2018
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d0a174d
track the span for each id so that we can give a nice ICE
nikomatsakis 40f8094
add some `debug!` into lowering
nikomatsakis a0a4790
renumber segment ids for visibilities whenever we clone them
nikomatsakis 4687eeb
preserve the original visibility for the "list stem" node
nikomatsakis 2bd2fc9
add regression test
nikomatsakis 4c7ce7c
pass vis by shared reference
nikomatsakis 9cdf491
hack: ignore list-stems for pub lint
nikomatsakis ebf3c8d
add compile-pass annotation
nikomatsakis b83150e
only reset non-restricted visibilities
nikomatsakis 5f2a173
explain how this works
nikomatsakis 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, you still need to reset at least
pub
(hir::VisibilityKind::Public
) into something more private, otherwise you'll get a lot of noise from rustdoc (the stem is emitted for all braced imports).This way the hack for
UnreachablePub
can be avoided as well.This should be ok since
hir::VisibilityKind::Public
doesn't have a path with node IDs inside it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything except for
VisibilityKind::Restricted
can be reset toVisibilityKind::Inherited
basically.