-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Improve DefIndex formatting to be more semantic #44319
Conversation
@bors r+ rollup Thanks! |
📌 Commit b2a64d0 has been approved by |
src/librustc/hir/def_id.rs
Outdated
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
write!(f, | ||
"DefIndex({}:{})", | ||
self.0 & DEF_INDEX_HI_START.0, |
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.
nit: self.address_space().index()
would be a bit nicer.
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.
Oh that is a method that exists? Oops.
@bors r+ |
📌 Commit b8cf07e has been approved by |
The
|
@bors r+ |
📌 Commit 76fae71 has been approved by |
Improve DefIndex formatting to be more semantic Fixes rust-lang#44318 r? @eddyb
Improve DefIndex formatting to be more semantic Fixes rust-lang#44318 r? @eddyb
Fixes #44318
r? @eddyb