Uh oh!
There was an error while loading. Please reload this page.
path trimming: ignore type aliases - #78052
Conversation
rust-highfive
commented
Oct 17, 2020
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
petrochenkov
commented
Oct 17, 2020
I'm not sure what is the logic here besides "this makes |
e86c1e2 to
52c95cdCompareda-x
commented
Oct 17, 2020
Not sure about treating this as special case. If there are other type names colliding with type aliases, the tests don't reveal them. We'll get a better picture by listing all the type aliases in |
bors
commented
Oct 17, 2020
☔ The latest upstream changes (presumably #77373) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
davidtwco
left a comment
There was a problem hiding this comment.
Implementation LGTM; I think I like this change, but I'd like to clarify a few things. These are the primary cases that this concerns, right?
- Alias has same name as type that it aliases - alias would be printed using the full path, but (more common) use of type wouldn't (e.g.
Result). This seems reasonable, improves the common case and I don't think it'd lead to much confusion. - Alias has the same name as an entirely unrelated type (from a different crate, for example), alias would be printed using the full path and if unrelated type were used then it would have its short path printed. Could this lead to a user using alias
Foowithout a path throughout their code, and then having typeFoo(used in their code asfoo::Foo) be printed without the full path in diagnostics? That seems like it could be confusing.
Uh oh!
There was an error while loading. Please reload this page.
da-x
commented
Oct 20, 2020
@davidtwco can you point to cases where paths to aliases are being printed? AFAIK the type system resolves type aliases so that printed types are fully resolved and are not related to them at all. |
davidtwco
commented
Oct 20, 2020
I was just assuming that was the behaviour. If that isn't the case then I think I'm happy with this change. |
Dylan-DPC-zz
commented
Nov 7, 2020
@davidtwco do you wish to review this again? Or can we consider "happy with this change" as an approval? (pending the trivial conflicts) |
davidtwco
commented
Nov 8, 2020
Apologies, I should have been clearer and followed-up - I'm happy to see this land after a rebase. |
52c95cd to
247c9c7Comparebors
commented
Nov 24, 2020
☔ The latest upstream changes (presumably #78343) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
crlf0710
commented
Dec 11, 2020
@da-x Ping from triage. I'm sorry but this seems needs a rebase again. |
247c9c7 to
98f43e1Comparedavidtwco
commented
Dec 21, 2020
Apologies again for being so slow to get back to this review - looks good now. @bors r+ |
bors
commented
Dec 21, 2020
📌 Commit 98f43e1e7c287eda1aeaed8fffe0254f994ef320 has been approved by |
bors
commented
Dec 21, 2020
⌛ Testing commit 98f43e1e7c287eda1aeaed8fffe0254f994ef320 with merge 3aa1bf2bc01ad967a5d3db4e42bbe941f92e2f14... |
rust-log-analyzer
commented
Dec 21, 2020
The job Click to see the possible cause of the failure (guessed by this bot) |
bors
commented
Dec 21, 2020
💔 Test failed - checks-actions |
da-x
commented
Jan 22, 2021
If it would have reproduced locally, that would have been much easier. However In the CI, it only fails in one particular Windows rustc port - |
davidtwco
commented
Jan 24, 2021
I think this makes sense. |
bors
commented
Jan 28, 2021
☔ The latest upstream changes (presumably #81149) made this pull request unmergeable. Please resolve the merge conflicts. |
b91d55e to
9dc0d1dCompareda-x
commented
Jan 28, 2021
@bors r=davidtwco |
bors
commented
Jan 28, 2021
📌 Commit 9dc0d1d has been approved by |
…davidtwco path trimming: ignore type aliases Continuation of rust-lang#73996.
jonas-schievink
commented
Jan 29, 2021
@bors r- rollup=iffy failed in #81528 (comment) |
davidtwco
commented
Jan 30, 2021
Looks like disabling trimmed paths for that test either didn't work, or there were trimmed paths in the output that weren't undone. |
bors
commented
Feb 1, 2021
☔ The latest upstream changes (presumably #80851) made this pull request unmergeable. Please resolve the merge conflicts. |
da-x
commented
Feb 4, 2021
My mistake so far was not building with Let's see how it runs now. :) |
da-x
commented
Feb 4, 2021
@bors r=davidtwco |
bors
commented
Feb 4, 2021
📌 Commit 0752415f88179d8a828f95c6569ce0a834981161 has been approved by |
bors
commented
Feb 5, 2021
☔ The latest upstream changes (presumably #81257) made this pull request unmergeable. Please resolve the merge conflicts. |
da-x
commented
Feb 6, 2021
@bors r=davidtwco |
bors
commented
Feb 6, 2021
📌 Commit 6495029 has been approved by |
bors
commented
Feb 6, 2021
bors
commented
Feb 7, 2021
☀️ Test successful - checks-actions |
Continuation of #73996.