mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

1. rustdoc::bare_urls doesn't output invalid suggestions if source_span_for_markdown_range fails to find a span 2. source_span_for_markdown_range tries harder to return a span by applying an additional diagnostic fixes https://github.com/rust-lang/rust/issues/135851
19 lines
497 B
Plaintext
19 lines
497 B
Plaintext
error: this URL is not a hyperlink
|
|
--> $DIR/bare-urls-limit.rs:9:9
|
|
|
|
|
LL | #[doc = "good: <https://example.com/> \n\n"]
|
|
| _________^
|
|
LL | |
|
|
LL | | #[doc = "bad: https://example.com/"]
|
|
| |___________________________________^
|
|
|
|
|
= note: bare URLs are not automatically turned into clickable links
|
|
note: the lint level is defined here
|
|
--> $DIR/bare-urls-limit.rs:3:9
|
|
|
|
|
LL | #![deny(rustdoc::bare_urls)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|