-
Notifications
You must be signed in to change notification settings - Fork 13.7k
No source fixes #144864
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
No source fixes #144864
Conversation
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
This PR modifies |
This comment has been minimized.
This comment has been minimized.
0349864
to
e29c33f
Compare
e29c33f
to
c855af5
Compare
c855af5
to
5f97bad
Compare
This comment has been minimized.
This comment has been minimized.
5f97bad
to
618a8fd
Compare
This comment has been minimized.
This comment has been minimized.
618a8fd
to
c417e22
Compare
This comment has been minimized.
This comment has been minimized.
c417e22
to
2bd47d2
Compare
This PR was rebased onto a different master 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. |
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.
Thanks!
@@ -6,7 +6,6 @@ LL | fn new() -> NoResult<MyEnum, String> { | |||
--> $SRC_DIR/core/src/result.rs:LL:COL | |||
| | |||
= note: similarly named enum `Result` defined here | |||
| |
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.
Remark: hm, I wonder if the spacing originally was intended to help make the separation between the note vs the subsequent help clearer, but IMO this is not very different, so it's fine.
@bors r+ rollup |
Rollup of 9 pull requests Successful merges: - #142727 (wasm: rm static mut) - #143193 (Port `#[link]` to the new attribute parsing infrastructure ) - #144864 (No source fixes) - #145913 (Add spin_loop hint for LoongArch) - #145926 (compiletest: Remove several remnants of the old libtest-based executor) - #145928 (Rename `Location::file_with_nul` to `file_as_c_str`) - #145930 (`const`ify (the unstable) `str::as_str`) - #145941 (Disable `integer_to_ptr_transmutes` suggestion for unsized types) - #145953 (Update `icu_list` to 2.0) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #144864 - Muscraft:no-source-fixes, r=jieyouxu No source fixes This PR started as a fix for a rendering bug that [got noticed in #143661](#143661 (comment)), but turned into a fix for any rendering bugs related to files with no source. - Don't add an end column separator after a file with no source - Add column separator before secondary messages with no source - Render continuation between no source labels Before ``` error[E0423]: expected function, tuple struct or tuple variant, found struct `std::collections::HashMap` ╭▸ $DIR/multi-suggestion.rs:17:13 │ LL │ let _ = std::collections::HashMap(); │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╭▸ $SRC_DIR/std/src/collections/hash/map.rs:LL:COL │ ╰ note: `std::collections::HashMap` defined here ╰╴ note: constructor is not visible here due to private fields ╭▸ $SRC_DIR/alloc/src/boxed.rs:LL:COL │ ╰ note: private field │ ╰ note: private field ``` After ``` error[E0423]: expected function, tuple struct or tuple variant, found struct `std::collections::HashMap` ╭▸ $DIR/multi-suggestion.rs:17:13 │ LL │ let _ = std::collections::HashMap(); │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╰╴ ╭▸ $SRC_DIR/std/src/collections/hash/map.rs:LL:COL │ ╰ note: `std::collections::HashMap` defined here note: constructor is not visible here due to private fields ╭▸ $SRC_DIR/alloc/src/boxed.rs:LL:COL │ ├ note: private field │ ╰ note: private field ``` Note: This PR also makes it so `rustc` and `annotate-snippets` match in these cases
This PR started as a fix for a rendering bug that got noticed in #143661, but turned into a fix for any rendering bugs related to files with no source.
Before
After
Note: This PR also makes it so
rustc
andannotate-snippets
match in these cases