Skip to content

Commit e436704

Browse files
committed
Auto merge of #148163 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to 049767e. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2 parents 36b7816 + 049767e commit e436704

File tree

244 files changed

+9305
-13900
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+9305
-13900
lines changed

Cargo.lock

Lines changed: 37 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ debug = 2
3737
[patch.'crates-io']
3838
# rowan = { path = "../rowan" }
3939

40-
# chalk-ir = { path = "../chalk/chalk-ir" }
41-
# chalk-derive = { path = "../chalk/chalk-derive" }
4240
# line-index = { path = "lib/line-index" }
4341
# la-arena = { path = "lib/la-arena" }
4442
# lsp-server = { path = "lib/lsp-server" }
@@ -88,14 +86,14 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8886
vfs = { path = "./crates/vfs", version = "0.0.0" }
8987
edition = { path = "./crates/edition", version = "0.0.0" }
9088

91-
ra-ap-rustc_lexer = { version = "0.133", default-features = false }
92-
ra-ap-rustc_parse_format = { version = "0.133", default-features = false }
93-
ra-ap-rustc_index = { version = "0.133", default-features = false }
94-
ra-ap-rustc_abi = { version = "0.133", default-features = false }
95-
ra-ap-rustc_pattern_analysis = { version = "0.133", default-features = false }
96-
ra-ap-rustc_ast_ir = { version = "0.133", default-features = false }
97-
ra-ap-rustc_type_ir = { version = "0.133", default-features = false }
98-
ra-ap-rustc_next_trait_solver = { version = "0.133", default-features = false }
89+
ra-ap-rustc_lexer = { version = "0.137", default-features = false }
90+
ra-ap-rustc_parse_format = { version = "0.137", default-features = false }
91+
ra-ap-rustc_index = { version = "0.137", default-features = false }
92+
ra-ap-rustc_abi = { version = "0.137", default-features = false }
93+
ra-ap-rustc_pattern_analysis = { version = "0.137", default-features = false }
94+
ra-ap-rustc_ast_ir = { version = "0.137", default-features = false }
95+
ra-ap-rustc_type_ir = { version = "0.137", default-features = false }
96+
ra-ap-rustc_next_trait_solver = { version = "0.137", default-features = false }
9997

10098
# local crates that aren't published to crates.io. These should not have versions.
10199

@@ -110,8 +108,6 @@ arrayvec = "0.7.6"
110108
bitflags = "2.9.1"
111109
cargo_metadata = "0.21.0"
112110
camino = "1.1.10"
113-
chalk-ir = "0.104.0"
114-
chalk-derive = "0.104.0"
115111
crossbeam-channel = "0.5.15"
116112
dissimilar = "1.0.10"
117113
dot = "0.1.4"

crates/cfg/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ arbitrary = { version = "1.4.1", features = ["derive"] }
2929
syntax-bridge.workspace = true
3030
syntax.workspace = true
3131

32+
# tt is needed for testing
33+
cfg = { path = ".", default-features = false, features = ["tt"] }
34+
3235
[lints]
3336
workspace = true

crates/cfg/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ impl CfgOptions {
115115
pub fn shrink_to_fit(&mut self) {
116116
self.enabled.shrink_to_fit();
117117
}
118+
119+
pub fn append(&mut self, other: CfgOptions) {
120+
// Do not call `insert_any_atom()`, as it'll check for `true` and `false`, but this is not
121+
// needed since we already checked for that when constructing `other`. Furthermore, this
122+
// will always err, as `other` inevitably contains `true` (just as we do).
123+
self.enabled.extend(other.enabled);
124+
}
118125
}
119126

120127
impl Extend<CfgAtom> for CfgOptions {

crates/hir-ty/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ oorandom = "11.1.5"
2424
tracing.workspace = true
2525
rustc-hash.workspace = true
2626
scoped-tls = "1.0.1"
27-
chalk-ir.workspace = true
28-
chalk-derive.workspace = true
2927
la-arena.workspace = true
3028
triomphe.workspace = true
3129
typed-arena = "2.0.2"

0 commit comments

Comments
 (0)