Skip to content

Commit

Permalink
Adjust macro hygiene test formatting
Browse files Browse the repository at this point in the history
Different versions of rustfmt mangle this all different ways.
  • Loading branch information
dtolnay committed May 22, 2021
1 parent c610d97 commit ee2a47d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_source.rs
Expand Up @@ -60,4 +60,8 @@ macro_rules! error_from_macro {
}

// Test that we generate impls with the proper hygiene
error_from_macro!(#[error("Something")] Variant(#[from] io::Error));
#[rustfmt::skip]
error_from_macro! {
#[error("Something")]
Variant(#[from] io::Error)
}

0 comments on commit ee2a47d

Please sign in to comment.