From 0c3b38695ad5c77b80f6e05a96e575ec9bea8223 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 8 Feb 2021 11:38:51 -0500 Subject: Update crates Pulls in https://github.com/rust-lang/chalk/pull/682 --- crates/hir_ty/src/traits/chalk/interner.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src/traits/chalk') diff --git a/crates/hir_ty/src/traits/chalk/interner.rs b/crates/hir_ty/src/traits/chalk/interner.rs index 6a4aa8333..54bd1c724 100644 --- a/crates/hir_ty/src/traits/chalk/interner.rs +++ b/crates/hir_ty/src/traits/chalk/interner.rs @@ -193,8 +193,9 @@ impl chalk_ir::interner::Interner for Interner { tls::with_current_program(|prog| Some(prog?.debug_quantified_where_clauses(clauses, fmt))) } - fn intern_ty(&self, ty: chalk_ir::TyData) -> Arc> { - Arc::new(ty) + fn intern_ty(&self, kind: chalk_ir::TyKind) -> Arc> { + let flags = kind.compute_flags(self); + Arc::new(chalk_ir::TyData { kind, flags }) } fn ty_data<'a>(&self, ty: &'a Arc>) -> &'a chalk_ir::TyData { -- cgit v1.2.3