Slim rustc_parse_format
dependencies down · rust-lang/rust@7fdb7bd (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 |
---|---|---|
@@ -6,6 +6,10 @@ edition = "2024" | ||
6 | 6 | [dependencies] |
7 | 7 | # tidy-alphabetical-start |
8 | 8 | literal-escaper = { path = "../../library/literal-escaper" } |
9 | -rustc_index = { path = "../rustc_index", default-features = false } | |
10 | 9 | rustc_lexer = { path = "../rustc_lexer" } |
11 | 10 | # tidy-alphabetical-end |
11 | + | |
12 | +[dev-dependencies] | |
13 | +# tidy-alphabetical-start | |
14 | +rustc_index = { path = "../rustc_index", default-features = false } | |
15 | +# tidy-alphabetical-end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1106,7 +1106,7 @@ fn unescape_string(string: &str) -> Option { | ||
1106 | 1106 | } |
1107 | 1107 | |
1108 | 1108 | // Assert a reasonable size for `Piece` |
1109 | -#[cfg(target_pointer_width = "64")] | |
1109 | +#[cfg(all(test, target_pointer_width = "64"))] | |
1110 | 1110 | rustc_index::static_assert_size!(Piece<'_>, 16); |
1111 | 1111 | |
1112 | 1112 | #[cfg(test)] |