Make some diagnostics not depend on the source of what they reference being available#105500
Make some diagnostics not depend on the source of what they reference being available#105500bors merged 8 commits intorust-lang:masterfrom
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @estebank (or someone else) soon. Please see the contribution instructions for more information. |
src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr
Outdated
Show resolved
Hide resolved
src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr
Outdated
Show resolved
Hide resolved
|
I'm seeing a bunch of test output changes that do not seem related to your code changes. Could there be a missing commit? |
I don't believe so |
src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr
Outdated
Show resolved
Hide resolved
src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr
Outdated
Show resolved
Hide resolved
408b93c to
a412710
Compare
src/test/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr
Outdated
Show resolved
Hide resolved
a412710 to
ae21671
Compare
There was a problem hiding this comment.
Should we add a length check here too, just to make sure that the snippet is not for a long expr in one line?
There was a problem hiding this comment.
maybe this entire diagnostic deserves a redesign to point at the span instead of getting the snippet in a message?
|
☔ The latest upstream changes (presumably #105554) made this pull request unmergeable. Please resolve the merge conflicts. |
ae21671 to
18d8fe4
Compare
There was a problem hiding this comment.
This is outstanding: it should be ::: or
note: similarly named
--> $SRC_DIR/...
|
@bors r+ |
|
📌 Commit e9dae2129800ad96b1b0ead3a0f485dbd412c06c has been approved by It is now in the queue for this repository. |
|
☔ The latest upstream changes (presumably #105644) made this pull request unmergeable. Please resolve the merge conflicts. |
… of relying on the span making it obvious
e9dae21 to
82ce70a
Compare
|
@bors r=estebank |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#105147 (Allow unsafe through inline const) - rust-lang#105438 (Move some codegen-y methods from `rustc_hir_analysis::collect` -> `rustc_codegen_ssa`) - rust-lang#105464 (Support #[track_caller] on async closures) - rust-lang#105476 (Change pattern borrowing suggestions to be verbose and remove invalid suggestion) - rust-lang#105500 (Make some diagnostics not depend on the source of what they reference being available) - rust-lang#105628 (Small doc fixes) - rust-lang#105659 (Don't require owned data in `MaybeStorageLive`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @estebank
follow up to #104449