Skip to content

Commit 7498dca

Browse files
authored
Rollup merge of #115574 - Veykril:rustc_parse_format-dep, r=Nilstrieb
Replace `rustc_data_structures` dependency with `rustc_index` in `rustc_parse_format` `rustc_data_structures` is only used for the `static_assert_size` macro, yet that is defined in `rustc_index` and merely re-exported. `rustc_index` is a lot more lightweight than `rustc_data_structures` which would make this a lot more reusable for rust-analyzer.
2 parents 4a31cc8 + 2bba056 commit 7498dca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4175,7 +4175,7 @@ dependencies = [
41754175
name = "rustc_parse_format"
41764176
version = "0.0.0"
41774177
dependencies = [
4178-
"rustc_data_structures",
4178+
"rustc_index",
41794179
"rustc_lexer",
41804180
]
41814181

compiler/rustc_parse_format/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ edition = "2021"
55

66
[dependencies]
77
rustc_lexer = { path = "../rustc_lexer" }
8-
rustc_data_structures = { path = "../rustc_data_structures" }
8+
rustc_index = { path = "../rustc_index", default-features = false }

compiler/rustc_parse_format/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ fn unescape_string(string: &str) -> Option<string::String> {
10111011

10121012
// Assert a reasonable size for `Piece`
10131013
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1014-
rustc_data_structures::static_assert_size!(Piece<'_>, 16);
1014+
rustc_index::static_assert_size!(Piece<'_>, 16);
10151015

10161016
#[cfg(test)]
10171017
mod tests;

0 commit comments

Comments
 (0)