Slim rustc_parse_format
dependencies down · rust-lang/rust@5950c86 (original) (raw)
File tree
2 files changed
lines changed
- compiler/rustc_parse_format
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,5 +8,7 @@ edition = "2024" | ||
8 | 8 | rustc_lexer = { path = "../rustc_lexer" } |
9 | 9 | # tidy-alphabetical-end |
10 | 10 | |
11 | -[target.'cfg(target_pointer_width = "64")'.dependencies] | |
11 | +[target.'cfg(target_pointer_width = "64")'.dev-dependencies] | |
12 | +# tidy-alphabetical-start | |
12 | 13 | rustc_index = { path = "../rustc_index", default-features = false } |
14 | +# tidy-alphabetical-end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1105,7 +1105,7 @@ fn unescape_string(string: &str) -> Option { | ||
1105 | 1105 | } |
1106 | 1106 | |
1107 | 1107 | // Assert a reasonable size for `Piece` |
1108 | -#[cfg(target_pointer_width = "64")] | |
1108 | +#[cfg(all(test, target_pointer_width = "64"))] | |
1109 | 1109 | rustc_index::static_assert_size!(Piece<'_>, 16); |
1110 | 1110 | |
1111 | 1111 | #[cfg(test)] |