fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.7 KiB167 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: \
13   = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
14help: mark blocks that do not contain Rust code as text
15   |
16LL | /// ```text
17   |        ++++
18
19warning: could not parse code block as Rust code
20  --> $DIR/invalid-syntax.rs:9:5
21   |
22LL |   /// ```
23   |  _____^
24LL | | ///    |
25LL | | /// LL | use foobar::Baz;
26LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
27LL | | /// ```
28   | |_______^
29   |
30   = note: error from rustc: unknown start of token: `
31   = note: error from rustc: unknown start of token: `
32help: mark blocks that do not contain Rust code as text
33   |
34LL | /// ```text
35   |        ++++
36
37warning: could not parse code block as Rust code
38  --> $DIR/invalid-syntax.rs:21:5
39   |
40LL |   /// ```
41   |  _____^
42LL | | /// \_
43LL | | /// ```
44   | |_______^
45   |
46   = note: error from rustc: unknown start of token: \
47help: mark blocks that do not contain Rust code as text
48   |
49LL | /// ```text
50   |        ++++
51
52warning: could not parse code block as Rust code
53  --> $DIR/invalid-syntax.rs:35:5
54   |
55LL |   /// ```rust
56   |  _____^
57LL | | /// \_
58LL | | /// ```
59   | |_______^
60   |
61   = note: error from rustc: unknown start of token: \
62
63warning: could not parse code block as Rust code
64  --> $DIR/invalid-syntax.rs:45:9
65   |
66LL |   ///     code with bad syntax
67   |  _________^
68LL | | ///     \_
69   | |__________^
70   |
71   = note: error from rustc: unknown start of token: \
72
73warning: could not parse code block as Rust code
74  --> $DIR/invalid-syntax.rs:60:9
75   |
76LL | ///     ```
77   |         ^^^
78   |
79   = note: error from rustc: unknown start of token: `
80
81warning: could not parse code block as Rust code
82  --> $DIR/invalid-syntax.rs:64:5
83   |
84LL |   /// ```edition2018
85   |  _____^
86LL | | /// \_
87LL | | /// ```
88   | |_______^
89   |
90   = note: error from rustc: unknown start of token: \
91
92warning: could not parse code block as Rust code
93  --> $DIR/invalid-syntax.rs:70:1
94   |
95LL | / #[doc = "```"]
96LL | | /// \_
97LL | | #[doc = "```"]
98   | |______________^
99   |
100   = help: mark blocks that do not contain Rust code as text: ```text
101   = note: error from rustc: unknown start of token: \
102
103warning: Rust code block is empty
104  --> $DIR/invalid-syntax.rs:76:5
105   |
106LL |   /// ```rust
107   |  _____^
108LL | | /// ```
109   | |_______^
110
111warning: Rust code block is empty
112  --> $DIR/invalid-syntax.rs:81:5
113   |
114LL |   /// ```
115   |  _____^
116LL | | ///
117LL | | ///
118LL | | /// ```
119   | |_______^
120   |
121help: mark blocks that do not contain Rust code as text
122   |
123LL | /// ```text
124   |        ++++
125
126warning: could not parse code block as Rust code
127  --> $DIR/invalid-syntax.rs:92:9
128   |
129LL |   ///     \____/
130   |  _________^
131LL | | ///
132   | |_
133   |
134   = note: error from rustc: unknown start of token: \
135
136warning: could not parse code block as Rust code
137  --> $DIR/invalid-syntax.rs:97:5
138   |
139LL |   /// ```
140   |  _____^
141LL | | /// "invalid
142LL | | /// ```
143   | |_______^
144   |
145   = note: error from rustc: unterminated double quote string
146help: mark blocks that do not contain Rust code as text
147   |
148LL | /// ```text
149   |        ++++
150
151warning: could not parse code block as Rust code
152  --> $DIR/invalid-syntax.rs:103:5
153   |
154LL |   /// ```
155   |  _____^
156LL | | /// fn wook_at_my_beautifuw_bwaces_plz() {);
157LL | | /// ```
158   | |_______^
159   |
160   = note: error from rustc: mismatched closing delimiter: `)`
161help: mark blocks that do not contain Rust code as text
162   |
163LL | /// ```text
164   |        ++++
165
166warning: 13 warnings emitted
167