]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/doc.stderr
Fix spans in all cases in `doc_markdown`
[rust.git] / clippy_tests / examples / doc.stderr
1 error: you should put `DOC_MARKDOWN` between ticks in the documentation
2  --> doc.rs:1:29
3   |
4 1 | //! This file tests for the DOC_MARKDOWN lint
5   |                             ^^^^^^^^^^^^
6   |
7   = note: `-D doc-markdown` implied by `-D warnings`
8
9 error: you should put `foo_bar` between ticks in the documentation
10  --> doc.rs:8:9
11   |
12 8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
13   |         ^^^^^^^
14   |
15   = note: `-D doc-markdown` implied by `-D warnings`
16
17 error: you should put `foo::bar` between ticks in the documentation
18  --> doc.rs:8:51
19   |
20 8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
21   |                                                   ^^^^^^^^
22   |
23   = note: `-D doc-markdown` implied by `-D warnings`
24
25 error: you should put `Foo::some_fun` between ticks in the documentation
26  --> doc.rs:9:84
27   |
28 9 | /// Markdown is _weird_. I mean _really weird_.  This \_ is ok. So is `_`. But not Foo::some_fun
29   |                                                                                    ^^^^^^^^^^^^^
30   |
31   = note: `-D doc-markdown` implied by `-D warnings`
32
33 error: you should put `a::global:path` between ticks in the documentation
34   --> doc.rs:11:15
35    |
36 11 | /// Here be ::a::global:path.
37    |               ^^^^^^^^^^^^^^
38    |
39    = note: `-D doc-markdown` implied by `-D warnings`
40
41 error: you should put `NotInCodeBlock` between ticks in the documentation
42   --> doc.rs:12:22
43    |
44 12 | /// That's not code ~NotInCodeBlock~.
45    |                      ^^^^^^^^^^^^^^
46    |
47    = note: `-D doc-markdown` implied by `-D warnings`
48
49 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
50   --> doc.rs:13:5
51    |
52 13 | /// be_sure_we_got_to_the_end_of_it
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54    |
55    = note: `-D doc-markdown` implied by `-D warnings`
56
57 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
58   --> doc.rs:27:5
59    |
60 27 | /// be_sure_we_got_to_the_end_of_it
61    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62    |
63    = note: `-D doc-markdown` implied by `-D warnings`
64
65 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
66   --> doc.rs:34:5
67    |
68 34 | /// be_sure_we_got_to_the_end_of_it
69    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70    |
71    = note: `-D doc-markdown` implied by `-D warnings`
72
73 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
74   --> doc.rs:48:5
75    |
76 48 | /// be_sure_we_got_to_the_end_of_it
77    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78    |
79    = note: `-D doc-markdown` implied by `-D warnings`
80
81 error: you should put `link_with_underscores` between ticks in the documentation
82   --> doc.rs:52:22
83    |
84 52 | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
85    |                      ^^^^^^^^^^^^^^^^^^^^^
86    |
87    = note: `-D doc-markdown` implied by `-D warnings`
88
89 error: you should put `inline_link2` between ticks in the documentation
90   --> doc.rs:55:21
91    |
92 55 | /// It can also be [inline_link2].
93    |                     ^^^^^^^^^^^^
94    |
95    = note: `-D doc-markdown` implied by `-D warnings`
96
97 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
98   --> doc.rs:65:5
99    |
100 65 | /// be_sure_we_got_to_the_end_of_it
101    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102    |
103    = note: `-D doc-markdown` implied by `-D warnings`
104
105 error: you should put `CamelCaseThing` between ticks in the documentation
106   --> doc.rs:73:8
107    |
108 73 | /// ## CamelCaseThing
109    |        ^^^^^^^^^^^^^^
110    |
111    = note: `-D doc-markdown` implied by `-D warnings`
112
113 error: you should put `CamelCaseThing` between ticks in the documentation
114   --> doc.rs:76:7
115    |
116 76 | /// # CamelCaseThing
117    |       ^^^^^^^^^^^^^^
118    |
119    = note: `-D doc-markdown` implied by `-D warnings`
120
121 error: you should put `CamelCaseThing` between ticks in the documentation
122   --> doc.rs:78:22
123    |
124 78 | /// Not a title #897 CamelCaseThing
125    |                      ^^^^^^^^^^^^^^
126    |
127    = note: `-D doc-markdown` implied by `-D warnings`
128
129 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
130   --> doc.rs:79:5
131    |
132 79 | /// be_sure_we_got_to_the_end_of_it
133    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134    |
135    = note: `-D doc-markdown` implied by `-D warnings`
136
137 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
138   --> doc.rs:86:5
139    |
140 86 | /// be_sure_we_got_to_the_end_of_it
141    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142    |
143    = note: `-D doc-markdown` implied by `-D warnings`
144
145 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
146   --> doc.rs:99:5
147    |
148 99 | /// be_sure_we_got_to_the_end_of_it
149    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
150    |
151    = note: `-D doc-markdown` implied by `-D warnings`
152
153 error: you should put `FooBar` between ticks in the documentation
154    --> doc.rs:110:42
155     |
156 110 | /** E.g. serialization of an empty list: FooBar
157     |                                          ^^^^^^
158     |
159     = note: `-D doc-markdown` implied by `-D warnings`
160
161 error: you should put `BarQuz` between ticks in the documentation
162    --> doc.rs:115:5
163     |
164 115 | And BarQuz too.
165     |     ^^^^^^
166     |
167     = note: `-D doc-markdown` implied by `-D warnings`
168
169 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
170    --> doc.rs:116:1
171     |
172 116 | be_sure_we_got_to_the_end_of_it
173     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174     |
175     = note: `-D doc-markdown` implied by `-D warnings`
176
177 error: you should put `FooBar` between ticks in the documentation
178    --> doc.rs:121:42
179     |
180 121 | /** E.g. serialization of an empty list: FooBar
181     |                                          ^^^^^^
182     |
183     = note: `-D doc-markdown` implied by `-D warnings`
184
185 error: you should put `BarQuz` between ticks in the documentation
186    --> doc.rs:126:5
187     |
188 126 | And BarQuz too.
189     |     ^^^^^^
190     |
191     = note: `-D doc-markdown` implied by `-D warnings`
192
193 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
194    --> doc.rs:127:1
195     |
196 127 | be_sure_we_got_to_the_end_of_it
197     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
198     |
199     = note: `-D doc-markdown` implied by `-D warnings`
200
201 error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
202    --> doc.rs:138:5
203     |
204 138 | /// be_sure_we_got_to_the_end_of_it
205     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
206     |
207     = note: `-D doc-markdown` implied by `-D warnings`
208
209 error: aborting due to previous error(s)
210
211 error: Could not compile `clippy_tests`.
212
213 To learn more, run the command again with --verbose.