mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Upgrade Chalk again
This commit is contained in:
parent
4c293c0a57
commit
7bb6fdcf52
2 changed files with 11 additions and 8 deletions
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -122,7 +122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chalk-engine"
|
name = "chalk-engine"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
source = "git+https://github.com/rust-lang/chalk.git#aa0c0582e4de1c0b84f99c412d92b9ca7ff06ddb"
|
source = "git+https://github.com/rust-lang/chalk.git#df09cc603c0cff9ed95e5554055d483fdd756fbc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chalk-macros 0.1.1 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-macros 0.1.1 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
"rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -132,7 +132,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chalk-ir"
|
name = "chalk-ir"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/rust-lang/chalk.git#aa0c0582e4de1c0b84f99c412d92b9ca7ff06ddb"
|
source = "git+https://github.com/rust-lang/chalk.git#df09cc603c0cff9ed95e5554055d483fdd756fbc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
"chalk-macros 0.1.1 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-macros 0.1.1 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
|
@ -142,7 +142,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chalk-macros"
|
name = "chalk-macros"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
source = "git+https://github.com/rust-lang/chalk.git#aa0c0582e4de1c0b84f99c412d92b9ca7ff06ddb"
|
source = "git+https://github.com/rust-lang/chalk.git#df09cc603c0cff9ed95e5554055d483fdd756fbc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -150,7 +150,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chalk-rust-ir"
|
name = "chalk-rust-ir"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/rust-lang/chalk.git#aa0c0582e4de1c0b84f99c412d92b9ca7ff06ddb"
|
source = "git+https://github.com/rust-lang/chalk.git#df09cc603c0cff9ed95e5554055d483fdd756fbc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
"chalk-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
|
@ -160,7 +160,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chalk-solve"
|
name = "chalk-solve"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/rust-lang/chalk.git#aa0c0582e4de1c0b84f99c412d92b9ca7ff06ddb"
|
source = "git+https://github.com/rust-lang/chalk.git#df09cc603c0cff9ed95e5554055d483fdd756fbc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-engine 0.9.0 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
"chalk-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
|
"chalk-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
|
||||||
|
|
|
@ -385,7 +385,11 @@ where
|
||||||
fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> {
|
fn impl_datum(&self, impl_id: ImplId) -> Arc<ImplDatum> {
|
||||||
self.db.impl_datum(self.krate, impl_id)
|
self.db.impl_datum(self.krate, impl_id)
|
||||||
}
|
}
|
||||||
fn impls_for_trait(&self, trait_id: chalk_ir::TraitId) -> Vec<ImplId> {
|
fn impls_for_trait(
|
||||||
|
&self,
|
||||||
|
trait_id: chalk_ir::TraitId,
|
||||||
|
_parameters: &[Parameter],
|
||||||
|
) -> Vec<ImplId> {
|
||||||
debug!("impls_for_trait {:?}", trait_id);
|
debug!("impls_for_trait {:?}", trait_id);
|
||||||
if trait_id == UNKNOWN_TRAIT {
|
if trait_id == UNKNOWN_TRAIT {
|
||||||
return Vec::new();
|
return Vec::new();
|
||||||
|
@ -415,8 +419,7 @@ where
|
||||||
&self,
|
&self,
|
||||||
projection: &'p chalk_ir::ProjectionTy,
|
projection: &'p chalk_ir::ProjectionTy,
|
||||||
) -> (Arc<AssociatedTyDatum>, &'p [Parameter], &'p [Parameter]) {
|
) -> (Arc<AssociatedTyDatum>, &'p [Parameter], &'p [Parameter]) {
|
||||||
let proj_ty: ProjectionTy = from_chalk(self.db, projection.clone());
|
debug!("split_projection {:?}", projection);
|
||||||
debug!("split_projection {:?} = {}", projection, proj_ty.display(self.db));
|
|
||||||
// we don't support GATs, so I think this should always be correct currently
|
// we don't support GATs, so I think this should always be correct currently
|
||||||
(self.db.associated_ty_data(projection.associated_ty_id), &projection.parameters, &[])
|
(self.db.associated_ty_data(projection.associated_ty_id), &projection.parameters, &[])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue