about summary refs log tree commit diff
path: root/compiler/rustc_mir_build
diff options
context:
space:
mode:
authorHarald van Dijk <harald@gigawatt.nl>2021-03-06 16:02:48 +0000
committerHarald van Dijk <harald@gigawatt.nl>2021-03-06 16:02:48 +0000
commit95e096d6237298f523e5566be87684d208f7d128 (patch)
tree468b0d4c282d5b94d8320dda8b79ccc74943ec5f /compiler/rustc_mir_build
parent51748a8fc77283914d4135f31b5966a407208187 (diff)
downloadrust-95e096d6237298f523e5566be87684d208f7d128.tar.gz
rust-95e096d6237298f523e5566be87684d208f7d128.zip
Change x64 size checks to not apply to x32.
Rust contains various size checks conditional on target_arch = "x86_64",
but these checks were never intended to apply to
x86_64-unknown-linux-gnux32. Add target_pointer_width = "64" to the
conditions.
Diffstat (limited to 'compiler/rustc_mir_build')
-rw-r--r--compiler/rustc_mir_build/src/thir/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/thir/mod.rs b/compiler/rustc_mir_build/src/thir/mod.rs
index ed3d3927825..ce0098fdf86 100644
--- a/compiler/rustc_mir_build/src/thir/mod.rs
+++ b/compiler/rustc_mir_build/src/thir/mod.rs
@@ -96,7 +96,7 @@ crate enum StmtKind<'tcx> {
 }
 
 // `Expr` is used a lot. Make sure it doesn't unintentionally get bigger.
-#[cfg(target_arch = "x86_64")]
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
 rustc_data_structures::static_assert_size!(Expr<'_>, 168);
 
 /// The Thir trait implementor lowers their expressions (`&'tcx H::Expr`)