rustdoc: point at span in include_str!
-ed md file
This commit is contained in:
parent
d74804636f
commit
98642da6a9
10 changed files with 121 additions and 42 deletions
15
tests/rustdoc-ui/include-str-bare-urls.rs
Normal file
15
tests/rustdoc-ui/include-str-bare-urls.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
// https://github.com/rust-lang/rust/issues/118549
|
||||
//
|
||||
// HEADS UP!
|
||||
//
|
||||
// Normally, a line with errors on it will also have a comment
|
||||
// marking it up as something that needs to generate an error.
|
||||
//
|
||||
// The test harness doesn't gather hot comments from the `.md` file.
|
||||
// Rustdoc will generate an error for the line, and the `.stderr`
|
||||
// snapshot includes this error, but Compiletest doesn't see it.
|
||||
//
|
||||
// If the stderr file changes, make sure the warning points at the URL!
|
||||
|
||||
#![deny(rustdoc::bare_urls)]
|
||||
#![doc=include_str!("auxiliary/include-str-bare-urls.md")]
|
Loading…
Add table
Add a link
Reference in a new issue