Add better default spans for the Ty impl of QueryKey#154846
Add better default spans for the Ty impl of QueryKey#154846Zoxc wants to merge 1 commit intorust-lang:mainfrom
Ty impl of QueryKey#154846Conversation
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
|
Maybe this could just use |
|
most aliases will still have an associated |
This comment has been minimized.
This comment has been minimized.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
This comment has been minimized.
This comment has been minimized.
|
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
|
r? lcnr for further review |
| note: ...which requires computing layout of `<() as A>::Assoc`... | ||
| --> $DIR/recursive-type-binding.rs:4:5 | ||
| | | ||
| LL | type Assoc: ?Sized; |
There was a problem hiding this comment.
specifically for projection aliases I think what users usually need is the impl, not the trait decl
There was a problem hiding this comment.
We probably can't find those without potentially causing query cycles though, which we must avoid in this context.
This add default spans for
Tyin its implementation ofQueryKey. This is useful so we can get spans for thelayout_ofquery which shows up in cycle errors.