summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/invalid-syntax.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/rustdoc-ui/invalid-syntax.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/rustdoc-ui/invalid-syntax.stderr')
-rw-r--r--src/test/rustdoc-ui/invalid-syntax.stderr154
1 files changed, 154 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/invalid-syntax.stderr b/src/test/rustdoc-ui/invalid-syntax.stderr
new file mode 100644
index 000000000..4c6249cc6
--- /dev/null
+++ b/src/test/rustdoc-ui/invalid-syntax.stderr
@@ -0,0 +1,154 @@
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:3:5
+ |
+LL | /// ```
+ | _____^
+LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/
+LL | | /// ```
+ | |_______^
+ |
+ = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
+ = note: error from rustc: unknown start of token: \
+ = note: error from rustc: unknown start of token: \
+ = note: error from rustc: unknown start of token: \
+help: mark blocks that do not contain Rust code as text
+ |
+LL | /// ```text
+ | ++++
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:9:5
+ |
+LL | /// ```
+ | _____^
+LL | | /// |
+LL | | /// LL | use foobar::Baz;
+LL | | /// | ^^^^^^ did you mean `baz::foobar`?
+LL | | /// ```
+ | |_______^
+ |
+ = note: error from rustc: unknown start of token: `
+ = note: error from rustc: unknown start of token: `
+help: mark blocks that do not contain Rust code as text
+ |
+LL | /// ```text
+ | ++++
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:21:5
+ |
+LL | /// ```
+ | _____^
+LL | | /// \_
+LL | | /// ```
+ | |_______^
+ |
+ = note: error from rustc: unknown start of token: \
+help: mark blocks that do not contain Rust code as text
+ |
+LL | /// ```text
+ | ++++
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:35:5
+ |
+LL | /// ```rust
+ | _____^
+LL | | /// \_
+LL | | /// ```
+ | |_______^
+ |
+ = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:45:9
+ |
+LL | /// code with bad syntax
+ | _________^
+LL | | /// \_
+ | |__________^
+ |
+ = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:60:9
+ |
+LL | /// ```
+ | ^^^
+ |
+ = note: error from rustc: unknown start of token: `
+ = note: error from rustc: unknown start of token: `
+ = note: error from rustc: unknown start of token: `
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:64:5
+ |
+LL | /// ```edition2018
+ | _____^
+LL | | /// \_
+LL | | /// ```
+ | |_______^
+ |
+ = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:70:1
+ |
+LL | / #[doc = "```"]
+LL | | /// \_
+LL | | #[doc = "```"]
+ | |______________^
+ |
+ = help: mark blocks that do not contain Rust code as text: ```text
+ = note: error from rustc: unknown start of token: \
+
+warning: Rust code block is empty
+ --> $DIR/invalid-syntax.rs:76:5
+ |
+LL | /// ```rust
+ | _____^
+LL | | /// ```
+ | |_______^
+
+warning: Rust code block is empty
+ --> $DIR/invalid-syntax.rs:81:5
+ |
+LL | /// ```
+ | _____^
+LL | | ///
+LL | | ///
+LL | | /// ```
+ | |_______^
+ |
+help: mark blocks that do not contain Rust code as text
+ |
+LL | /// ```text
+ | ++++
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:92:9
+ |
+LL | /// \____/
+ | _________^
+LL | | ///
+ | |_
+ |
+ = note: error from rustc: unknown start of token: \
+
+warning: could not parse code block as Rust code
+ --> $DIR/invalid-syntax.rs:97:5
+ |
+LL | /// ```
+ | _____^
+LL | | /// "invalid
+LL | | /// ```
+ | |_______^
+ |
+ = note: error from rustc: unterminated double quote string
+help: mark blocks that do not contain Rust code as text
+ |
+LL | /// ```text
+ | ++++
+
+warning: 12 warnings emitted
+