-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Rename PathResolution
to PartialRes
#60544
Conversation
Don't use `PartialRes` when `Res` is enough
Paths can never resolve to labels
This is looking nicer by the day @bors r+ |
📌 Commit 0824082ed3ad2b6d7d02423522f24c2bda1bc128 has been approved by |
@eddyb |
@bors r- |
@@ -142,7 +142,6 @@ pub enum Res<Id = hir::HirId> { | |||
Upvar(Id, // `HirId` of closed over local | |||
usize, // index in the `freevars` list of the closure | |||
ast::NodeId), // expr node that creates the closure |
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.
Btw, I've started a branch removing Res::Upvar
just in case you wanted to do that too.
@bors r+ |
📌 Commit 7da9250 has been approved by |
⌛ Testing commit 7da9250 with merge ee142165308d6bd1709d8e1108571643e4606994... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry |
☀️ Test successful - checks-travis, status-appveyor |
Don't use
PartialRes
whenRes
is enough.Rename
Res::kind_name
toRes::descr
for consistency.Remove
Res::Label
, paths can never resolve to labels.Some further cleanup after #60462
r? @eddyb