Skip to content

Commit 43a2eaa

Browse files
committed
Hide negative impls from rustfmt
Rustfmt silently deletes the '!'. - impl !Trait {} + impl Trait {} - impl !! {} + impl ! {}
1 parent 0399ba4 commit 43a2eaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_item.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ fn test_negative_impl() {
6161
"###);
6262

6363
#[cfg(any())]
64+
#[rustfmt::skip]
6465
impl !Trait {}
6566
let tokens = quote! {
6667
impl !Trait {}
@@ -105,6 +106,7 @@ fn test_negative_impl() {
105106
"###);
106107

107108
#[cfg(any())]
109+
#[rustfmt::skip]
108110
impl !! {}
109111
let tokens = quote! {
110112
impl !! {}

0 commit comments

Comments
 (0)