Skip to content

Commit 8b9331b

Browse files
committed
Fix rustfmt error / Add comment for tab character
1 parent dde46c9 commit 8b9331b

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

tests/ui/crashes/ice-5835.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#![rustfmt::skip]
2-
1+
#[rustfmt::skip]
32
pub struct Foo {
43
/// 位
4+
/// ^ Do not remove this tab character.
5+
/// It was required to trigger the ICE.
56
pub bar: u8,
67
}
78

tests/ui/crashes/ice-5835.stderr

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
1-
error[E0658]: custom inner attributes are unstable
2-
--> $DIR/ice-5835.rs:1:4
3-
|
4-
LL | #![rustfmt::skip]
5-
| ^^^^^^^^^^^^^
6-
|
7-
= note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information
8-
= help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
9-
101
error: using tabs in doc comments is not recommended
11-
--> $DIR/ice-5835.rs:4:10
2+
--> $DIR/ice-5835.rs:3:10
123
|
134
LL | /// 位
145
| ^^^^ help: consider using four spaces per tab
156
|
167
= note: `-D clippy::tabs-in-doc-comments` implied by `-D warnings`
178

18-
error: aborting due to 2 previous errors
9+
error: aborting due to previous error
1910

20-
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)