From 43c958d805a20b456913ebdb0461a86454adef1f Mon Sep 17 00:00:00 2001 From: Zalathar Date: Mon, 16 Feb 2026 16:30:20 +1100 Subject: [PATCH] (DO NOT MERGE) Measure the perf impact of `PackedFingerprint` --- compiler/rustc_data_structures/src/fingerprint.rs | 1 - compiler/rustc_middle/src/dep_graph/dep_node.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/compiler/rustc_data_structures/src/fingerprint.rs b/compiler/rustc_data_structures/src/fingerprint.rs index c7c0d0ab0725d..e79c9f2d76cb5 100644 --- a/compiler/rustc_data_structures/src/fingerprint.rs +++ b/compiler/rustc_data_structures/src/fingerprint.rs @@ -196,7 +196,6 @@ impl Decodable for Fingerprint { // // The wrapped `Fingerprint` is private to reduce the chance of a client // invoking undefined behavior by taking a reference to the packed field. -#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), repr(packed))] #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Clone, Copy, Hash)] pub struct PackedFingerprint(Fingerprint); diff --git a/compiler/rustc_middle/src/dep_graph/dep_node.rs b/compiler/rustc_middle/src/dep_graph/dep_node.rs index 0033a1cd2337b..b147bc0969d36 100644 --- a/compiler/rustc_middle/src/dep_graph/dep_node.rs +++ b/compiler/rustc_middle/src/dep_graph/dep_node.rs @@ -502,9 +502,6 @@ mod size_asserts { use super::*; // tidy-alphabetical-start static_assert_size!(DepKind, 2); - #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] - static_assert_size!(DepNode, 18); - #[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))] static_assert_size!(DepNode, 24); // tidy-alphabetical-end }