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 10bcdad commit e9b8cc6Copy full SHA for e9b8cc6
compiler/rustc_parse_format/Cargo.toml
@@ -5,6 +5,10 @@ edition = "2024"
5
6
[dependencies]
7
# tidy-alphabetical-start
8
-rustc_index = { path = "../rustc_index", default-features = false }
9
rustc_lexer = { path = "../rustc_lexer" }
10
# tidy-alphabetical-end
+
11
+[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