Skip to content

Commit b0b2b1c

Browse files
committed
Fix allow(dead_code)
1 parent 0ae7373 commit b0b2b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir-ty/src/layout/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn check_fail(ra_fixture: &str, e: LayoutError) {
118118
macro_rules! size_and_align {
119119
(minicore: $($x:tt),*;$($t:tt)*) => {
120120
{
121-
#[allow(dead_code)]
121+
#![allow(dead_code)]
122122
$($t)*
123123
check_size_and_align(
124124
stringify!($($t)*),
@@ -130,7 +130,7 @@ macro_rules! size_and_align {
130130
};
131131
($($t:tt)*) => {
132132
{
133-
#[allow(dead_code)]
133+
#![allow(dead_code)]
134134
$($t)*
135135
check_size_and_align(
136136
stringify!($($t)*),

0 commit comments

Comments
 (0)