Skip to content

Commit 3732d11

Browse files
committed
Specify fixable doc tests
1 parent 0db8c52 commit 3732d11

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed
File renamed without changes.
File renamed without changes.

tests/ui/doc/doc.stderr renamed to tests/ui/doc/doc-fixable.stderr

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,181 +1,181 @@
11
error: item in documentation is missing backticks
2-
--> $DIR/doc.rs:9:9
2+
--> $DIR/doc-fixable.rs:9:9
33
|
44
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
55
| ^^^^^^^ help: try: ``foo_bar``
66
|
77
= note: `-D clippy::doc-markdown` implied by `-D warnings`
88

99
error: item in documentation is missing backticks
10-
--> $DIR/doc.rs:9:51
10+
--> $DIR/doc-fixable.rs:9:51
1111
|
1212
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
1313
| ^^^^^^^^ help: try: ``foo::bar``
1414

1515
error: item in documentation is missing backticks
16-
--> $DIR/doc.rs:10:83
16+
--> $DIR/doc-fixable.rs:10:83
1717
|
1818
LL | /// Markdown is _weird_. I mean _really weird_. This /_ is ok. So is `_`. But not Foo::some_fun
1919
| ^^^^^^^^^^^^^ help: try: ``Foo::some_fun``
2020

2121
error: item in documentation is missing backticks
22-
--> $DIR/doc.rs:12:13
22+
--> $DIR/doc-fixable.rs:12:13
2323
|
2424
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
2525
| ^^^^^^^^^^^^^^^^ help: try: ``::a::global:path``
2626

2727
error: item in documentation is missing backticks
28-
--> $DIR/doc.rs:12:36
28+
--> $DIR/doc-fixable.rs:12:36
2929
|
3030
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
3131
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``::another::global::path``
3232

3333
error: item in documentation is missing backticks
34-
--> $DIR/doc.rs:13:25
34+
--> $DIR/doc-fixable.rs:13:25
3535
|
3636
LL | /// Import an item from ::awesome::global::blob:: (Intended postfix)
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``::awesome::global::blob::``
3838

3939
error: item in documentation is missing backticks
40-
--> $DIR/doc.rs:14:31
40+
--> $DIR/doc-fixable.rs:14:31
4141
|
4242
LL | /// These are the options for ::Cat: (Intended trailing single colon, shouldn't be linted)
4343
| ^^^^^ help: try: ``::Cat``
4444

4545
error: item in documentation is missing backticks
46-
--> $DIR/doc.rs:15:22
46+
--> $DIR/doc-fixable.rs:15:22
4747
|
4848
LL | /// That's not code ~NotInCodeBlock~.
4949
| ^^^^^^^^^^^^^^ help: try: ``NotInCodeBlock``
5050

5151
error: item in documentation is missing backticks
52-
--> $DIR/doc.rs:16:5
52+
--> $DIR/doc-fixable.rs:16:5
5353
|
5454
LL | /// be_sure_we_got_to_the_end_of_it
5555
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
5656

5757
error: item in documentation is missing backticks
58-
--> $DIR/doc.rs:30:5
58+
--> $DIR/doc-fixable.rs:30:5
5959
|
6060
LL | /// be_sure_we_got_to_the_end_of_it
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
6262

6363
error: item in documentation is missing backticks
64-
--> $DIR/doc.rs:37:5
64+
--> $DIR/doc-fixable.rs:37:5
6565
|
6666
LL | /// be_sure_we_got_to_the_end_of_it
6767
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
6868

6969
error: item in documentation is missing backticks
70-
--> $DIR/doc.rs:51:5
70+
--> $DIR/doc-fixable.rs:51:5
7171
|
7272
LL | /// be_sure_we_got_to_the_end_of_it
7373
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
7474

7575
error: item in documentation is missing backticks
76-
--> $DIR/doc.rs:74:5
76+
--> $DIR/doc-fixable.rs:74:5
7777
|
7878
LL | /// be_sure_we_got_to_the_end_of_it
7979
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
8080

8181
error: item in documentation is missing backticks
82-
--> $DIR/doc.rs:78:22
82+
--> $DIR/doc-fixable.rs:78:22
8383
|
8484
LL | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
8585
| ^^^^^^^^^^^^^^^^^^^^^ help: try: ``link_with_underscores``
8686

8787
error: item in documentation is missing backticks
88-
--> $DIR/doc.rs:81:21
88+
--> $DIR/doc-fixable.rs:81:21
8989
|
9090
LL | /// It can also be [inline_link2].
9191
| ^^^^^^^^^^^^ help: try: ``inline_link2``
9292

9393
error: item in documentation is missing backticks
94-
--> $DIR/doc.rs:91:5
94+
--> $DIR/doc-fixable.rs:91:5
9595
|
9696
LL | /// be_sure_we_got_to_the_end_of_it
9797
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
9898

9999
error: item in documentation is missing backticks
100-
--> $DIR/doc.rs:99:8
100+
--> $DIR/doc-fixable.rs:99:8
101101
|
102102
LL | /// ## CamelCaseThing
103103
| ^^^^^^^^^^^^^^ help: try: ``CamelCaseThing``
104104

105105
error: item in documentation is missing backticks
106-
--> $DIR/doc.rs:102:7
106+
--> $DIR/doc-fixable.rs:102:7
107107
|
108108
LL | /// # CamelCaseThing
109109
| ^^^^^^^^^^^^^^ help: try: ``CamelCaseThing``
110110

111111
error: item in documentation is missing backticks
112-
--> $DIR/doc.rs:104:22
112+
--> $DIR/doc-fixable.rs:104:22
113113
|
114114
LL | /// Not a title #897 CamelCaseThing
115115
| ^^^^^^^^^^^^^^ help: try: ``CamelCaseThing``
116116

117117
error: item in documentation is missing backticks
118-
--> $DIR/doc.rs:105:5
118+
--> $DIR/doc-fixable.rs:105:5
119119
|
120120
LL | /// be_sure_we_got_to_the_end_of_it
121121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
122122

123123
error: item in documentation is missing backticks
124-
--> $DIR/doc.rs:112:5
124+
--> $DIR/doc-fixable.rs:112:5
125125
|
126126
LL | /// be_sure_we_got_to_the_end_of_it
127127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
128128

129129
error: item in documentation is missing backticks
130-
--> $DIR/doc.rs:125:5
130+
--> $DIR/doc-fixable.rs:125:5
131131
|
132132
LL | /// be_sure_we_got_to_the_end_of_it
133133
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
134134

135135
error: item in documentation is missing backticks
136-
--> $DIR/doc.rs:136:43
136+
--> $DIR/doc-fixable.rs:136:43
137137
|
138138
LL | /** E.g., serialization of an empty list: FooBar
139139
| ^^^^^^ help: try: ``FooBar``
140140

141141
error: item in documentation is missing backticks
142-
--> $DIR/doc.rs:141:5
142+
--> $DIR/doc-fixable.rs:141:5
143143
|
144144
LL | And BarQuz too.
145145
| ^^^^^^ help: try: ``BarQuz``
146146

147147
error: item in documentation is missing backticks
148-
--> $DIR/doc.rs:142:1
148+
--> $DIR/doc-fixable.rs:142:1
149149
|
150150
LL | be_sure_we_got_to_the_end_of_it
151151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
152152

153153
error: item in documentation is missing backticks
154-
--> $DIR/doc.rs:147:43
154+
--> $DIR/doc-fixable.rs:147:43
155155
|
156156
LL | /** E.g., serialization of an empty list: FooBar
157157
| ^^^^^^ help: try: ``FooBar``
158158

159159
error: item in documentation is missing backticks
160-
--> $DIR/doc.rs:152:5
160+
--> $DIR/doc-fixable.rs:152:5
161161
|
162162
LL | And BarQuz too.
163163
| ^^^^^^ help: try: ``BarQuz``
164164

165165
error: item in documentation is missing backticks
166-
--> $DIR/doc.rs:153:1
166+
--> $DIR/doc-fixable.rs:153:1
167167
|
168168
LL | be_sure_we_got_to_the_end_of_it
169169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
170170

171171
error: item in documentation is missing backticks
172-
--> $DIR/doc.rs:164:5
172+
--> $DIR/doc-fixable.rs:164:5
173173
|
174174
LL | /// be_sure_we_got_to_the_end_of_it
175175
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: ``be_sure_we_got_to_the_end_of_it``
176176

177177
error: item in documentation is missing backticks
178-
--> $DIR/doc.rs:183:22
178+
--> $DIR/doc-fixable.rs:183:22
179179
|
180180
LL | /// An iterator over mycrate::Collection's values.
181181
| ^^^^^^^^^^^^^^^^^^^ help: try: ``mycrate::Collection``

0 commit comments

Comments
 (0)