about summary refs log tree commit diff
path: root/tests/rustdoc-ui/include-str-bare-urls.stderr
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-03-29 12:31:34 -0700
committerMichael Howell <michael@notriddle.com>2024-03-29 13:31:35 -0700
commit98642da6a9dda39e711b7f3520b0b6d40c1cd043 (patch)
treebc3834326dc016ab7bb22636218b753f03c8aaf1 /tests/rustdoc-ui/include-str-bare-urls.stderr
parentd74804636fa57e80d1e213fa9d2d65b27216b515 (diff)
downloadrust-98642da6a9dda39e711b7f3520b0b6d40c1cd043.tar.gz
rust-98642da6a9dda39e711b7f3520b0b6d40c1cd043.zip
rustdoc: point at span in `include_str!`-ed md file
Diffstat (limited to 'tests/rustdoc-ui/include-str-bare-urls.stderr')
-rw-r--r--tests/rustdoc-ui/include-str-bare-urls.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/include-str-bare-urls.stderr b/tests/rustdoc-ui/include-str-bare-urls.stderr
new file mode 100644
index 00000000000..a4234196b23
--- /dev/null
+++ b/tests/rustdoc-ui/include-str-bare-urls.stderr
@@ -0,0 +1,15 @@
+error: this URL is not a hyperlink
+  --> $DIR/auxiliary/include-str-bare-urls.md:1:11
+   |
+LL | HEADS UP! https://example.com MUST SHOW UP IN THE STDERR FILE!
+   |           ^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://example.com>`
+   |
+   = note: bare URLs are not automatically turned into clickable links
+note: the lint level is defined here
+  --> $DIR/include-str-bare-urls.rs:14:9
+   |
+LL | #![deny(rustdoc::bare_urls)]
+   |         ^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 1 previous error
+