Skip to content

Commit 941876c

Browse files
committed
update tests
1 parent 40f3102 commit 941876c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

tests/ui/empty_docs.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44
pub mod outer_module {
55

66
//!
7-
87
//! valid doc comment
9-
108
//!!
11-
129
//!! valid doc comment
1310
1411
///
15-
1612
/// valid doc comment
13+
///
14+
/// valid block doc comment
1715
1816
/**
1917
*
2018
*/
2119

2220
/**
2321
* valid block doc comment
22+
*
2423
*/
2524

2625
pub mod inner_module {}

tests/ui/empty_docs.stderr

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: empty doc comment
2-
--> $DIR/empty_docs.rs:14:5
2+
--> $DIR/empty_docs.rs:11:5
33
|
44
LL | ///
55
| ^^^
@@ -9,7 +9,15 @@ LL | ///
99
= help: to override `-D warnings` add `#[allow(clippy::empty_docs)]`
1010

1111
error: empty doc comment
12-
--> $DIR/empty_docs.rs:18:5
12+
--> $DIR/empty_docs.rs:13:5
13+
|
14+
LL | ///
15+
| ^^^
16+
|
17+
= help: consider removing or fill it
18+
19+
error: empty doc comment
20+
--> $DIR/empty_docs.rs:16:5
1321
|
1422
LL | / /**
1523
LL | | *
@@ -27,12 +35,12 @@ LL | //!
2735
= help: consider removing or fill it
2836

2937
error: empty doc comment
30-
--> $DIR/empty_docs.rs:10:5
38+
--> $DIR/empty_docs.rs:8:5
3139
|
3240
LL | //!!
3341
| ^^^^
3442
|
3543
= help: consider removing or fill it
3644

37-
error: aborting due to 4 previous errors
45+
error: aborting due to 5 previous errors
3846

0 commit comments

Comments
 (0)