-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix printing regions with -Z verbose #43458
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This is a real output change - now e.g. a borrow for static lifetime displays as |
Ah, indeed. I did not realize this. I will push a patch which just changes the conditional to be
At the very least, then the documentation of I generally find it rather strange that |
CI failure looks like network problem. |
@bors r+ rollup |
📌 Commit 4e1249d has been approved by |
Thanks :) |
@bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 4e1249d has been approved by |
Fix printing regions with -Z verbose When dumping MIR with `-Z verbose`, it would print regions on types, but not in the code. It seems the Rvalue printing code tried to be smart and guessed when the `Display` for `Region` would not possibly print anything. This PR makes it no longer be smart, and just always use the `Display` like all the other code (e.g. printing types) does.
When dumping MIR with
-Z verbose
, it would print regions on types, but not in the code. It seems the Rvalue printing code tried to be smart and guessed when theDisplay
forRegion
would not possibly print anything.This PR makes it no longer be smart, and just always use the
Display
like all the other code (e.g. printing types) does.