-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Do not show DefId in diagnostics #71310
Conversation
@bors r+ rollup |
📌 Commit e171cda has been approved by |
Rollup of 4 pull requests Successful merges: - rust-lang#71026 (Fix false "never constructed" warnings for `Self::` variant paths) - rust-lang#71310 (Do not show DefId in diagnostics) - rust-lang#71317 (miri-unleash test for llvm_asm) - rust-lang#71324 (Fix some tests failing in `--pass check` mode) Failed merges: r? @ghost
// Cross-crate closure types should only be | ||
// visible in codegen bug reports, I imagine. | ||
p!(write("@{:?}", did)); | ||
p!(write("@{}", self.tcx().def_path_str(did))); |
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.
You can see above that p!(write("@"), print_def_path(did, substs));
is the right way to do this (used in the local case with span_free_formats
).
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, overlooked this comment, sorry! Will address it soonish.
Prefer to use `print_def_path` Follow-up of rust-lang#71310 (comment)
Fixes #71222
r? @estebank cc @eddyb