Improve cross-crate trait impl param mismatch suggestions #149027
Improve cross-crate trait impl param mismatch suggestions #149027rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
a989b57 to
3d5d61f
Compare
This comment has been minimized.
This comment has been minimized.
3d5d61f to
3cecb85
Compare
3cecb85 to
e408b20
Compare
This comment has been minimized.
This comment has been minimized.
e408b20 to
3cecb85
Compare
There was a problem hiding this comment.
Sorry for the delay in getting back here, this slipped my notifications.
Did you have a look at the previous implementation? #107548
Some of the tests in that one contains //~| HELP attributes, which I think is useful for actually testing that the behaviour is what we desire.
tests/ui/impl-trait/in-trait/method-signature-matches.too_few.stderr
Outdated
Show resolved
Hide resolved
tests/ui/impl-trait/in-trait/method-signature-matches.too_few.stderr
Outdated
Show resolved
Hide resolved
|
Reminder, once the PR becomes ready for a review, use |
3cecb85 to
9f65b05
Compare
This comment has been minimized.
This comment has been minimized.
9f65b05 to
34b2df8
Compare
|
@rustbot ready |
There was a problem hiding this comment.
Thanks, I had another look through, I like the test you've added, but I still feel that the approach with extracting the signature from spans is the wrong one (though maybe that's just me hating span calculation code), have expanded upon it in a comment.
tests/ui/suggestions/trait-impl-param-mismatched-cross-crate.stderr
Outdated
Show resolved
Hide resolved
2a476e7 to
0e8c962
Compare
ee0499f to
3443d4c
Compare
|
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. |
|
Hi @madsmtm, just a friendly reminder if you have time to look at this PR. The author seems to have addressed all the previous review feedback and rebased 🙂 |
|
@bors delegate+ |
|
✌️ @reddevilmidzy, you can now approve this pull request! If @madsmtm told you to " |
|
Thanks for the review! I added the comment you mentioned and changed |
3443d4c to
f3ca2c4
Compare
This comment has been minimized.
This comment has been minimized.
f3ca2c4 to
97748ad
Compare
|
@bors r=madsmtm |
Improve cross-crate trait impl param mismatch suggestions resolve: rust-lang#106999
Improve cross-crate trait impl param mismatch suggestions resolve: rust-lang#106999
…uwer Rollup of 12 pull requests Successful merges: - #153211 (`rust-analyzer` subtree update) - #149027 (Improve cross-crate trait impl param mismatch suggestions ) - #152730 (add field representing types) - #153136 (Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports) - #152165 (Normalize capture place `ty`s to prevent ICE) - #152615 (refactor 'valid for read/write' definition: exclude null) - #153109 (Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug) - #153172 (Fix comment about placeholders) - #153187 (Fix ICE when macro-expanded extern crate shadows std) - #153190 (Don't allow subdiagnostic to use variables from their parent) - #153200 (Remove redundant clone) - #153216 (mark two polonius tests as known-bug)
…uwer Rollup of 12 pull requests Successful merges: - rust-lang/rust#153211 (`rust-analyzer` subtree update) - rust-lang/rust#149027 (Improve cross-crate trait impl param mismatch suggestions ) - rust-lang/rust#152730 (add field representing types) - rust-lang/rust#153136 (Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports) - rust-lang/rust#152165 (Normalize capture place `ty`s to prevent ICE) - rust-lang/rust#152615 (refactor 'valid for read/write' definition: exclude null) - rust-lang/rust#153109 (Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug) - rust-lang/rust#153172 (Fix comment about placeholders) - rust-lang/rust#153187 (Fix ICE when macro-expanded extern crate shadows std) - rust-lang/rust#153190 (Don't allow subdiagnostic to use variables from their parent) - rust-lang/rust#153200 (Remove redundant clone) - rust-lang/rust#153216 (mark two polonius tests as known-bug)
resolve: #106999