diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-12-12 16:28:26 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2020-01-04 19:20:35 -0500 |
| commit | 1ad928ee528e8ed94d6074f5f4b2f7051dbe2325 (patch) | |
| tree | 0bcc6623456d83f511c3ef33a1d310538c4e7ce3 /src/test/rustdoc-ui | |
| parent | 760ce94c69ca510d44087291c311296f6d9ccdf5 (diff) | |
| download | rust-1ad928ee528e8ed94d6074f5f4b2f7051dbe2325.tar.gz rust-1ad928ee528e8ed94d6074f5f4b2f7051dbe2325.zip | |
buffer lexer errors in rustdoc syntax checking
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/invalid-syntax.stderr | 128 |
1 files changed, 19 insertions, 109 deletions
diff --git a/src/test/rustdoc-ui/invalid-syntax.stderr b/src/test/rustdoc-ui/invalid-syntax.stderr index fe5442163ea..32cc20755ec 100644 --- a/src/test/rustdoc-ui/invalid-syntax.stderr +++ b/src/test/rustdoc-ui/invalid-syntax.stderr @@ -1,21 +1,3 @@ -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \__________pkt->size___________/ \_result->size_/ \__pkt->size__/ - | ^ - -error: unknown start of token: \ - --> <doctest>:1:43 - | -1 | \__________pkt->size___________/ \_result->size_/ \__pkt->size__/ - | ^ - -error: unknown start of token: \ - --> <doctest>:1:60 - | -1 | \__________pkt->size___________/ \_result->size_/ \__pkt->size__/ - | ^ - warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:3:5 | @@ -25,33 +7,14 @@ LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->si 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: \ help: mark blocks that do not contain Rust code as text | LL | /// ```text | ^^^^^^^ -error: unknown start of token: ` - --> <doctest>:3:30 - | -3 | | ^^^^^^ did you mean `baz::foobar`? - | ^ - | -help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not - | -3 | | ^^^^^^ did you mean 'baz::foobar`? - | ^ - -error: unknown start of token: ` - --> <doctest>:3:42 - | -3 | | ^^^^^^ did you mean `baz::foobar`? - | ^ - | -help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not - | -3 | | ^^^^^^ did you mean `baz::foobar'? - | ^ - warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:9:5 | @@ -63,17 +26,13 @@ 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 | ^^^^^^^ -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \_ - | ^ - warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:21:5 | @@ -83,17 +42,12 @@ LL | | /// \_ LL | | /// ``` | |_______^ | + = note: error from rustc: unknown start of token: \ help: mark blocks that do not contain Rust code as text | LL | /// ```text | ^^^^^^^ -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \_ - | ^ - warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:35:5 | @@ -102,12 +56,8 @@ LL | /// ```rust LL | | /// \_ LL | | /// ``` | |_______^ - -error: unknown start of token: \ - --> <doctest>:2:5 - | -2 | \_ - | ^ + | + = note: error from rustc: unknown start of token: \ warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:45:9 @@ -116,51 +66,18 @@ LL | /// code with bad syntax | _________^ LL | | /// \_ | |__________^ - -error: unknown start of token: ` - --> <doctest>:1:1 - | -1 | ``` - | ^ - | -help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not - | -1 | '`` - | ^ - -error: unknown start of token: ` - --> <doctest>:1:2 - | -1 | ``` - | ^ - | -help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not - | -1 | `'` - | ^ - -error: unknown start of token: ` - --> <doctest>:1:3 - | -1 | ``` - | ^ - | -help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not - | -1 | ``' - | ^ + | + = note: error from rustc: unknown start of token: \ warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:60:9 | LL | /// ``` | ^^^ - -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \_ - | ^ + | + = 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 @@ -170,12 +87,8 @@ LL | /// ```edition2018 LL | | /// \_ LL | | /// ``` | |_______^ - -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \_ - | ^ + | + = note: error from rustc: unknown start of token: \ warning: doc comment contains an invalid Rust code block --> $DIR/invalid-syntax.rs:70:1 @@ -186,6 +99,7 @@ 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 @@ -210,15 +124,11 @@ help: mark blocks that do not contain Rust code as text LL | /// ```text | ^^^^^^^ -error: unknown start of token: \ - --> <doctest>:1:1 - | -1 | \____/ - | ^ - warning: could not parse code block as Rust code --> $DIR/invalid-syntax.rs:92:9 | LL | /// \____/ | ^^^^^^ + | + = note: error from rustc: unknown start of token: \ |
