2018-12-15 21:25:50 +00:00
|
|
|
warning: could not parse code block as Rust code
|
|
|
|
--> $DIR/invalid-syntax.rs:3:5
|
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| _____^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/
|
2018-12-15 21:25:50 +00:00
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-12-12 21:28:26 +00:00
|
|
|
= note: error from rustc: unknown start of token: \
|
|
|
|
= note: error from rustc: unknown start of token: \
|
|
|
|
= note: error from rustc: unknown start of token: \
|
2022-09-23 18:34:34 +00:00
|
|
|
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
|
2018-12-15 21:25:50 +00:00
|
|
|
help: mark blocks that do not contain Rust code as text
|
|
|
|
|
|
|
|
|
LL | /// ```text
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:9:5
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| _____^
|
|
|
|
LL | | /// |
|
|
|
|
LL | | /// LL | use foobar::Baz;
|
|
|
|
LL | | /// | ^^^^^^ did you mean `baz::foobar`?
|
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-12-12 21:28:26 +00:00
|
|
|
= note: error from rustc: unknown start of token: `
|
|
|
|
= note: error from rustc: unknown start of token: `
|
2018-12-15 21:25:50 +00:00
|
|
|
help: mark blocks that do not contain Rust code as text
|
|
|
|
|
|
|
|
|
LL | /// ```text
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:21:5
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| _____^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \_
|
2018-12-15 21:25:50 +00:00
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-12-12 21:28:26 +00:00
|
|
|
= note: error from rustc: unknown start of token: \
|
2018-12-15 21:25:50 +00:00
|
|
|
help: mark blocks that do not contain Rust code as text
|
|
|
|
|
|
|
|
|
LL | /// ```text
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:35:5
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// ```rust
|
|
|
|
| _____^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \_
|
2018-12-15 21:25:50 +00:00
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-12-12 21:28:26 +00:00
|
|
|
|
|
|
|
|
= note: error from rustc: unknown start of token: \
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:45:9
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// code with bad syntax
|
|
|
|
| _________^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \_
|
2018-12-15 21:25:50 +00:00
|
|
|
| |__________^
|
2019-12-12 21:28:26 +00:00
|
|
|
|
|
|
|
|
= note: error from rustc: unknown start of token: \
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:60:9
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| ^^^
|
2019-12-12 21:28:26 +00:00
|
|
|
|
|
|
|
|
= note: error from rustc: unknown start of token: `
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:64:5
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
LL | /// ```edition2018
|
|
|
|
| _____^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \_
|
2018-12-15 21:25:50 +00:00
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-12-12 21:28:26 +00:00
|
|
|
|
|
|
|
|
= note: error from rustc: unknown start of token: \
|
2018-12-15 21:25:50 +00:00
|
|
|
|
2021-04-26 13:11:08 +00:00
|
|
|
warning: could not parse code block as Rust code
|
2024-03-29 19:31:34 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:70:9
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
2024-03-29 19:31:34 +00:00
|
|
|
LL | #[doc = "```"]
|
|
|
|
| _________^
|
2019-03-13 04:47:36 +00:00
|
|
|
LL | | /// \_
|
2018-12-15 21:25:50 +00:00
|
|
|
LL | | #[doc = "```"]
|
2024-03-29 19:31:34 +00:00
|
|
|
| |_____________^
|
2018-12-15 21:25:50 +00:00
|
|
|
|
|
|
|
|
= help: mark blocks that do not contain Rust code as text: ```text
|
2019-12-12 21:28:26 +00:00
|
|
|
= note: error from rustc: unknown start of token: \
|
2018-09-03 20:24:11 +00:00
|
|
|
|
2019-08-19 14:19:26 +00:00
|
|
|
warning: Rust code block is empty
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:76:5
|
2019-08-19 14:19:26 +00:00
|
|
|
|
|
|
|
|
LL | /// ```rust
|
|
|
|
| _____^
|
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
|
|
|
|
|
|
|
warning: Rust code block is empty
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:81:5
|
2019-08-19 14:19:26 +00:00
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| _____^
|
|
|
|
LL | | ///
|
|
|
|
LL | | ///
|
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-08-19 14:19:26 +00:00
|
|
|
help: mark blocks that do not contain Rust code as text
|
|
|
|
|
|
|
|
|
LL | /// ```text
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++
|
2019-08-19 14:19:26 +00:00
|
|
|
|
2019-09-07 19:21:32 +00:00
|
|
|
warning: could not parse code block as Rust code
|
2019-11-08 00:00:00 +00:00
|
|
|
--> $DIR/invalid-syntax.rs:92:9
|
2019-09-07 19:21:32 +00:00
|
|
|
|
|
2020-12-21 20:03:19 +00:00
|
|
|
LL | /// \____/
|
|
|
|
| _________^
|
|
|
|
LL | | ///
|
2024-06-17 15:14:07 +00:00
|
|
|
| |_^
|
2019-12-12 21:28:26 +00:00
|
|
|
|
|
|
|
|
= note: error from rustc: unknown start of token: \
|
2019-09-07 19:21:32 +00:00
|
|
|
|
2020-01-17 23:44:44 +00:00
|
|
|
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
|
2021-08-10 10:53:43 +00:00
|
|
|
| ++++
|
2020-01-17 23:44:44 +00:00
|
|
|
|
2022-10-03 19:01:19 +00:00
|
|
|
warning: could not parse code block as Rust code
|
|
|
|
--> $DIR/invalid-syntax.rs:103:5
|
|
|
|
|
|
|
|
|
LL | /// ```
|
|
|
|
| _____^
|
|
|
|
LL | | /// fn wook_at_my_beautifuw_bwaces_plz() {);
|
|
|
|
LL | | /// ```
|
|
|
|
| |_______^
|
|
|
|
|
|
|
|
|
= note: error from rustc: mismatched closing delimiter: `)`
|
|
|
|
help: mark blocks that do not contain Rust code as text
|
|
|
|
|
|
|
|
|
LL | /// ```text
|
|
|
|
| ++++
|
|
|
|
|
|
|
|
warning: 13 warnings emitted
|
2020-03-11 15:30:09 +00:00
|
|
|
|