diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-09 10:00:57 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-09 10:00:57 +0200 |
| commit | b0b2b1c5f1c4d4d989d0e21ebfe575db2cbf4e18 (patch) | |
| tree | 3ce250c77d53dd9144b8aaee3db56481a36563d6 | |
| parent | 0ae73738adfbe0a6eaceed6b198cd3a124bce77c (diff) | |
| download | rust-b0b2b1c5f1c4d4d989d0e21ebfe575db2cbf4e18.tar.gz rust-b0b2b1c5f1c4d4d989d0e21ebfe575db2cbf4e18.zip | |
Fix allow(dead_code)
| -rw-r--r-- | crates/hir-ty/src/layout/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/layout/tests.rs b/crates/hir-ty/src/layout/tests.rs index ef0be7ab2da..57214193cfb 100644 --- a/crates/hir-ty/src/layout/tests.rs +++ b/crates/hir-ty/src/layout/tests.rs @@ -118,7 +118,7 @@ fn check_fail(ra_fixture: &str, e: LayoutError) { macro_rules! size_and_align { (minicore: $($x:tt),*;$($t:tt)*) => { { - #[allow(dead_code)] + #![allow(dead_code)] $($t)* check_size_and_align( stringify!($($t)*), @@ -130,7 +130,7 @@ macro_rules! size_and_align { }; ($($t:tt)*) => { { - #[allow(dead_code)] + #![allow(dead_code)] $($t)* check_size_and_align( stringify!($($t)*), |
