-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Various diagnostics clean ups/tweaks #87225
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
Conversation
estebank
commented
Jul 17, 2021
- Always point at macros, including derive macros
- Point at non-local items that introduce a trait requirement
- On private associated item, point at definition
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The changes look reasonable to me but I'd prefer if someone from @rust-lang/wg-diagnostics reviewed this. r? @rust-lang/wg-diagnostics |
(@LeSeulArtichaut & @Mark-Simulacrum, it looks like above |
Currently highfive only knows what's declared in there: https://github.com/rust-lang/highfive/blob/master/highfive/configs/rust-lang/rust.json If we want to support |
r? @oli-obk :) |
2f5c832
to
9ce65ac
Compare
This comment has been minimized.
This comment has been minimized.
* Always point at macros, including derive macros * Point at non-local items that introduce a trait requirement * On private associated item, point at definition
let sp = self | ||
.tcx | ||
.hir() | ||
.span_if_local(def_id) | ||
.unwrap_or_else(|| self.tcx.def_span(def_id)); |
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.
I think this pattern could warrant its own helper function
@bors r+ p=1 bitrotty |
📌 Commit ba052bd has been approved by |
☀️ Test successful - checks-actions |