Skip to content
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

Merged
merged 1 commit into from
Apr 19, 2020
Merged

Do not show DefId in diagnostics #71310

merged 1 commit into from
Apr 19, 2020

Conversation

JohnTitor
Copy link
Member

Fixes #71222
r? @estebank cc @eddyb

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 19, 2020
@estebank
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 19, 2020

📌 Commit e171cda has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 19, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 19, 2020
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
@bors bors merged commit ab44c77 into rust-lang:master Apr 19, 2020
@JohnTitor JohnTitor deleted the dont-did branch April 19, 2020 23:15
// 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)));
Copy link
Member

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).

Copy link
Member Author

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.

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tiny difference of the diagnostics for generator on some environment
5 participants