about summary refs log tree commit diff
path: root/compiler/rustc_parse_format/src/lib.rs
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2025-03-17 13:06:34 +0100
committerLukas Wirth <lukastw97@gmail.com>2025-03-23 07:30:18 +0100
commit5950c862bd3c2c410197d17d173cade26d38f041 (patch)
tree02bd73eff50523cb46f275efd00a6850b331551c /compiler/rustc_parse_format/src/lib.rs
parentf08d5c01e69436891ff1c181385d0e078a8482ec (diff)
downloadrust-5950c862bd3c2c410197d17d173cade26d38f041.tar.gz
rust-5950c862bd3c2c410197d17d173cade26d38f041.zip
Slim `rustc_parse_format` dependencies down
`rustc_index` is only used for its size assertion macro, so demote it to a dev-dependency gated under testing instead
Diffstat (limited to 'compiler/rustc_parse_format/src/lib.rs')
-rw-r--r--compiler/rustc_parse_format/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs
index 5b8a2fe52d3..97931742985 100644
--- a/compiler/rustc_parse_format/src/lib.rs
+++ b/compiler/rustc_parse_format/src/lib.rs
@@ -1105,7 +1105,7 @@ fn unescape_string(string: &str) -> Option<String> {
 }
 
 // Assert a reasonable size for `Piece`
-#[cfg(target_pointer_width = "64")]
+#[cfg(all(test, target_pointer_width = "64"))]
 rustc_index::static_assert_size!(Piece<'_>, 16);
 
 #[cfg(test)]