We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc_parse_format
1 parent f08d5c0 commit 5950c86Copy full SHA for 5950c86
compiler/rustc_parse_format/Cargo.toml
@@ -8,5 +8,7 @@ edition = "2024"
8
rustc_lexer = { path = "../rustc_lexer" }
9
# tidy-alphabetical-end
10
11
-[target.'cfg(target_pointer_width = "64")'.dependencies]
+[target.'cfg(target_pointer_width = "64")'.dev-dependencies]
12
+# tidy-alphabetical-start
13
rustc_index = { path = "../rustc_index", default-features = false }
14
+# tidy-alphabetical-end
compiler/rustc_parse_format/src/lib.rs
@@ -1105,7 +1105,7 @@ fn unescape_string(string: &str) -> Option<String> {
1105
}
1106
1107
// Assert a reasonable size for `Piece`
1108
-#[cfg(target_pointer_width = "64")]
+#[cfg(all(test, target_pointer_width = "64"))]
1109
rustc_index::static_assert_size!(Piece<'_>, 16);
1110
1111
#[cfg(test)]
0 commit comments