X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_data_structures%2Fmacros.rs;h=83e6dbedee226165eb05c8fea92cd4953a51fded;hb=eb769ed6b09cb9fa007508caef808f5e50264cb0;hp=3f75523a81584a7bc62330d01ab267200f68ec75;hpb=c5128293633d98a2d3f325c6be6b90b1731e833b;p=rust.git diff --git a/src/librustc_data_structures/macros.rs b/src/librustc_data_structures/macros.rs index 3f75523a815..83e6dbedee2 100644 --- a/src/librustc_data_structures/macros.rs +++ b/src/librustc_data_structures/macros.rs @@ -7,7 +7,7 @@ macro_rules! static_assert { // is out-of-bounds. #[allow(dead_code)] const _: () = [()][!($test: bool) as usize]; - } + }; } /// Type size assertion. The first argument is a type and the second argument is its expected size. @@ -15,5 +15,5 @@ macro_rules! static_assert { macro_rules! static_assert_size { ($ty:ty, $size:expr) => { const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()]; - } + }; }