Skip to content

Commit 2bba056

Browse files
committed
Replace data_structures dependency with index in rustc_parse_format
1 parent b89d7d6 commit 2bba056

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
@@ -4157,7 +4157,7 @@ dependencies = [
41574157
name = "rustc_parse_format"
41584158
version = "0.0.0"
41594159
dependencies = [
4160-
"rustc_data_structures",
4160+
"rustc_index",
41614161
"rustc_lexer",
41624162
]
41634163

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)