Avoid repeating qualifiers on static_assert_size
calls.
Some of these don't need a `use` statement because there is already a `#[macro_use] extern crate rustc_data_structures` item in the crate.
This commit is contained in:
parent
f03ce30962
commit
574ba831d4
6 changed files with 55 additions and 51 deletions
|
@ -823,9 +823,10 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
|
||||
mod size_asserts {
|
||||
use super::*;
|
||||
use rustc_data_structures::static_assert_size;
|
||||
// These are in alphabetical order, which is easy to maintain.
|
||||
rustc_data_structures::static_assert_size!(Immediate, 56);
|
||||
rustc_data_structures::static_assert_size!(ImmTy<'_>, 72);
|
||||
rustc_data_structures::static_assert_size!(Operand, 64);
|
||||
rustc_data_structures::static_assert_size!(OpTy<'_>, 88);
|
||||
static_assert_size!(Immediate, 56);
|
||||
static_assert_size!(ImmTy<'_>, 72);
|
||||
static_assert_size!(Operand, 64);
|
||||
static_assert_size!(OpTy<'_>, 88);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue