commit | 831ad549f9d0b5137bde66163c67352991c929f5 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Nov 06 20:29:20 2018 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Nov 06 20:29:20 2018 -0800 |
tree | b8c9e2a5fee53169c70642c5647c7518d298621d | |
parent | c3f98562a80968ea314831efdd0f3685c8075ecf [diff] [blame] |
Hide the feature check parse error from rustfmt
diff --git a/tests/features/mod.rs b/tests/features/mod.rs index 5df4889..b9a9797 100644 --- a/tests/features/mod.rs +++ b/tests/features/mod.rs
@@ -1,3 +1,9 @@ +macro_rules! hide_from_rustfmt { + ($($tt:tt)*) => { + $($tt)* + }; +} + #[cfg(not(all( feature = "derive", feature = "full", @@ -10,4 +16,6 @@ feature = "extra-traits", feature = "proc-macro", )))] -mod error; +hide_from_rustfmt! { + mod error; +}