diff options
author | Lukas Wirth <[email protected]> | 2021-03-01 12:54:17 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-01 12:54:17 +0000 |
commit | 4b7fc693150f333cefe0e69d93271807f32741c4 (patch) | |
tree | 8232ad3db121f32350aa78a1151aca46df373ace /crates/hir_ty/src/lib.rs | |
parent | 11a1f13cd1cf6da484fd4b8bfb5f72a625c2186a (diff) |
Assert index relationship between type_variable_table and var_unification_table
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r-- | crates/hir_ty/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs index 762437bf4..1131eaf92 100644 --- a/crates/hir_ty/src/lib.rs +++ b/crates/hir_ty/src/lib.rs | |||
@@ -527,11 +527,11 @@ impl TypeWalk for GenericPredicate { | |||
527 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 527 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
528 | pub struct Canonical<T> { | 528 | pub struct Canonical<T> { |
529 | pub value: T, | 529 | pub value: T, |
530 | pub kinds: Arc<[chalk_ir::TyVariableKind]>, | 530 | pub kinds: Arc<[TyVariableKind]>, |
531 | } | 531 | } |
532 | 532 | ||
533 | impl<T> Canonical<T> { | 533 | impl<T> Canonical<T> { |
534 | pub fn new(value: T, kinds: impl IntoIterator<Item = chalk_ir::TyVariableKind>) -> Self { | 534 | pub fn new(value: T, kinds: impl IntoIterator<Item = TyVariableKind>) -> Self { |
535 | Self { value, kinds: kinds.into_iter().collect() } | 535 | Self { value, kinds: kinds.into_iter().collect() } |
536 | } | 536 | } |
537 | } | 537 | } |