From 9c4b799dce89c8629b4f8cc98d0d8e25e6c05eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 2 Feb 2021 17:07:10 +0200 Subject: Bump chalk --- crates/hir_ty/src/traits/chalk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_ty/src') diff --git a/crates/hir_ty/src/traits/chalk.rs b/crates/hir_ty/src/traits/chalk.rs index cfb756158..d74c83737 100644 --- a/crates/hir_ty/src/traits/chalk.rs +++ b/crates/hir_ty/src/traits/chalk.rs @@ -675,7 +675,7 @@ pub(crate) fn fn_def_variance_query( ) -> Variances { let callable_def: CallableDefId = from_chalk(db, fn_def_id); let generic_params = generics(db.upcast(), callable_def.into()); - Variances::from( + Variances::from_iter( &Interner, std::iter::repeat(chalk_ir::Variance::Invariant).take(generic_params.len()), ) @@ -688,7 +688,7 @@ pub(crate) fn adt_variance_query( ) -> Variances { let adt: crate::AdtId = from_chalk(db, adt_id); let generic_params = generics(db.upcast(), adt.into()); - Variances::from( + Variances::from_iter( &Interner, std::iter::repeat(chalk_ir::Variance::Invariant).take(generic_params.len()), ) -- cgit v1.2.3