mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 06:33:58 +00:00
Fix allow(dead_code)
This commit is contained in:
parent
0ae73738ad
commit
b0b2b1c5f1
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ fn check_fail(ra_fixture: &str, e: LayoutError) {
|
||||||
macro_rules! size_and_align {
|
macro_rules! size_and_align {
|
||||||
(minicore: $($x:tt),*;$($t:tt)*) => {
|
(minicore: $($x:tt),*;$($t:tt)*) => {
|
||||||
{
|
{
|
||||||
#[allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
$($t)*
|
$($t)*
|
||||||
check_size_and_align(
|
check_size_and_align(
|
||||||
stringify!($($t)*),
|
stringify!($($t)*),
|
||||||
|
@ -130,7 +130,7 @@ macro_rules! size_and_align {
|
||||||
};
|
};
|
||||||
($($t:tt)*) => {
|
($($t:tt)*) => {
|
||||||
{
|
{
|
||||||
#[allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
$($t)*
|
$($t)*
|
||||||
check_size_and_align(
|
check_size_and_align(
|
||||||
stringify!($($t)*),
|
stringify!($($t)*),
|
||||||
|
|
Loading…
Reference in a new issue