-
Notifications
You must be signed in to change notification settings - Fork 13.5k
HirIdification: almost there #58915
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
HirIdification: almost there #58915
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
r? @Zoxc |
span_bug!(self.span(id), "body_owned_by: {} has no associated body", | ||
self.node_to_string(id)); | ||
pub fn body_owned_by(&self, id: HirId) -> BodyId { | ||
self.maybe_body_owned_by_by_hir_id(id).unwrap_or_else(|| { |
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.
Maybe rename maybe_body_owned_by_by_hir_id
to maybe_body_owned_by_hir_id
? =P
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.
Yeah, that one does sound silly ^^. I'm hoping to soon be able to just remove it in favor of just maybe_body_owned_by
.
@bors r+ |
📌 Commit 296eaa520d1d1e1f2e582b05e2dfe06ee2cbe87f has been approved by |
☔ The latest upstream changes (presumably #58583) made this pull request unmergeable. Please resolve the merge conflicts. |
296eaa5
to
cd06038
Compare
Rebased. |
@bors delegate+ r+ |
📌 Commit cd06038 has been approved by |
🌲 The tree is currently closed for pull requests below priority 500, this pull request will be tested once the tree is reopened |
✌️ @ljedrz can now approve this pull request |
I don't know where to ask this otherwise, so please forgive me if the question is out of band. Question: I'm seeing HirIdification all over Therefore, should I wait until the full Thank you so much, and sorry for disrupting your work 🙇♂️ |
@felix91gr Eventually all You can freely convert between |
Ah, cool, that makes perfect sense :) thanks!
Ohhhhh! That's great, I didn't know that! Thank you 😊 |
@bors r=Zoxc |
📌 Commit d7120e4 has been approved by |
📌 Commit 24fad4c has been approved by |
HirIdification: almost there The next iteration of HirIdification (#57578). Replaces a bunch of `NodeId` method calls (mostly `as_local_node_id`) with `HirId` ones. Removes `NodeId` from: - [x] `PathSegment` - [x] `PatKind` - [x] `Destination` (replaces it with `HirId`) In addition this PR also removes `Visitor::visit_def_mention`, which doesn't seem to be doing anything.
☀️ Test successful - checks-travis, status-appveyor |
The next iteration of HirIdification (#57578).
Replaces a bunch of
NodeId
method calls (mostlyas_local_node_id
) withHirId
ones.Removes
NodeId
from:PathSegment
PatKind
Destination
(replaces it withHirId
)In addition this PR also removes
Visitor::visit_def_mention
, which doesn't seem to be doing anything.