-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustdoc: point at span in include_str!
-ed md file
#123204
Conversation
This comment has been minimized.
This comment has been minimized.
540785e
to
1b73c7d
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a21216f
to
534e900
Compare
This comment has been minimized.
This comment has been minimized.
534e900
to
1c41dd6
Compare
r? compiler |
| | ||
LL | let b: &[u8] = include_str!("file.txt"); | ||
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `&str` | ||
| ----- ------------------------ in this macro invocation |
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.
I was a little nervous when I saw this that we were no longer printing the expected+actual types in the new output, but I expanded the diff and now see that the info is still present via a note that was in the previous output. Its a little more awkward to force people to look at the note to see this info, but its acceptable.
@bors r+ |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#123204 (rustdoc: point at span in `include_str!`-ed md file) - rust-lang#123223 (Fix invalid silencing of parsing error) - rust-lang#123249 (do not add prolog for variadic naked functions) - rust-lang#123825 (Call the panic hook for non-unwind panics in proc-macros) - rust-lang#123833 (Update stdarch submodule) - rust-lang#123841 (Improve diagnostic by suggesting to remove visibility qualifier) - rust-lang#123849 (Update E0384.md) - rust-lang#123852 (fix typo in library/std/src/lib.rs) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#123204 - notriddle:notriddle/include-str-span, r=pnkfelix rustdoc: point at span in `include_str!`-ed md file Fixes rust-lang#118549
…an, r=pnkfelix rustdoc: point at span in `include_str!`-ed md file Fixes rust-lang#118549
Fixes #118549