fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
3.4 KiB149 linesraw
1warning: could not parse code block as Rust code
2  --> $DIR/invalid-syntax.rs:3:5
3   |
4LL |   /// ```
5   |  _____^
6LL | | /// \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
7LL | | /// ```
8   | |_______^
9   |
10   = note: error from rustc: unknown start of token: \
11   = note: error from rustc: unknown start of token: \
12   = note: error from rustc: unknown start of token: \
13help: mark blocks that do not contain Rust code as text
14   |
15LL | /// ```text
16   |     ^^^^^^^
17
18warning: could not parse code block as Rust code
19  --> $DIR/invalid-syntax.rs:9:5
20   |
21LL |   /// ```
22   |  _____^
23LL | | ///    |
24LL | | /// LL | use foobar::Baz;
25LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
26LL | | /// ```
27   | |_______^
28   |
29   = note: error from rustc: unknown start of token: `
30   = note: error from rustc: unknown start of token: `
31help: mark blocks that do not contain Rust code as text
32   |
33LL | /// ```text
34   |     ^^^^^^^
35
36warning: could not parse code block as Rust code
37  --> $DIR/invalid-syntax.rs:21:5
38   |
39LL |   /// ```
40   |  _____^
41LL | | /// \_
42LL | | /// ```
43   | |_______^
44   |
45   = note: error from rustc: unknown start of token: \
46help: mark blocks that do not contain Rust code as text
47   |
48LL | /// ```text
49   |     ^^^^^^^
50
51warning: could not parse code block as Rust code
52  --> $DIR/invalid-syntax.rs:35:5
53   |
54LL |   /// ```rust
55   |  _____^
56LL | | /// \_
57LL | | /// ```
58   | |_______^
59   |
60   = note: error from rustc: unknown start of token: \
61
62warning: could not parse code block as Rust code
63  --> $DIR/invalid-syntax.rs:45:9
64   |
65LL |   ///     code with bad syntax
66   |  _________^
67LL | | ///     \_
68   | |__________^
69   |
70   = note: error from rustc: unknown start of token: \
71
72warning: could not parse code block as Rust code
73  --> $DIR/invalid-syntax.rs:60:9
74   |
75LL | ///     ```
76   |         ^^^
77   |
78   = note: error from rustc: unknown start of token: `
79   = note: error from rustc: unknown start of token: `
80   = note: error from rustc: unknown start of token: `
81
82warning: could not parse code block as Rust code
83  --> $DIR/invalid-syntax.rs:64:5
84   |
85LL |   /// ```edition2018
86   |  _____^
87LL | | /// \_
88LL | | /// ```
89   | |_______^
90   |
91   = note: error from rustc: unknown start of token: \
92
93warning: doc comment contains an invalid Rust code block
94  --> $DIR/invalid-syntax.rs:70:1
95   |
96LL | / #[doc = "```"]
97LL | | /// \_
98LL | | #[doc = "```"]
99   | |______________^
100   |
101   = help: mark blocks that do not contain Rust code as text: ```text
102   = note: error from rustc: unknown start of token: \
103
104warning: Rust code block is empty
105  --> $DIR/invalid-syntax.rs:76:5
106   |
107LL |   /// ```rust
108   |  _____^
109LL | | /// ```
110   | |_______^
111
112warning: Rust code block is empty
113  --> $DIR/invalid-syntax.rs:81:5
114   |
115LL |   /// ```
116   |  _____^
117LL | | ///
118LL | | ///
119LL | | /// ```
120   | |_______^
121   |
122help: mark blocks that do not contain Rust code as text
123   |
124LL | /// ```text
125   |     ^^^^^^^
126
127warning: could not parse code block as Rust code
128  --> $DIR/invalid-syntax.rs:92:9
129   |
130LL | ///     \____/
131   |         ^^^^^^
132   |
133   = note: error from rustc: unknown start of token: \
134
135warning: could not parse code block as Rust code
136  --> $DIR/invalid-syntax.rs:97:5
137   |
138LL |   /// ```
139   |  _____^
140LL | | /// "invalid
141LL | | /// ```
142   | |_______^
143   |
144   = note: error from rustc: unterminated double quote string
145help: mark blocks that do not contain Rust code as text
146   |
147LL | /// ```text
148   |     ^^^^^^^
149