From 738174671ae40092684d7a9a543f939e318051e5 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Mon, 5 Apr 2021 21:25:40 +0200 Subject: Binders::wrap_empty -> wrap_empty_binders --- crates/hir_ty/src/traits/chalk.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/hir_ty/src/traits') diff --git a/crates/hir_ty/src/traits/chalk.rs b/crates/hir_ty/src/traits/chalk.rs index 075e82f4b..5a8b5cd86 100644 --- a/crates/hir_ty/src/traits/chalk.rs +++ b/crates/hir_ty/src/traits/chalk.rs @@ -246,8 +246,8 @@ impl<'a> chalk_solve::RustIrDatabase for ChalkContext<'a> { let bound = OpaqueTyDatumBound { bounds: make_binders( vec![ - wrap_in_empty_binders(impl_bound).to_chalk(self.db), - wrap_in_empty_binders(proj_bound).to_chalk(self.db), + crate::wrap_empty_binders(impl_bound).to_chalk(self.db), + crate::wrap_empty_binders(proj_bound).to_chalk(self.db), ], 1, ), @@ -723,7 +723,3 @@ impl From for chalk_ir::ClosureId { chalk_ir::ClosureId(id.as_intern_id()) } } - -fn wrap_in_empty_binders(value: T) -> crate::Binders { - crate::Binders::wrap_empty(value) -} -- cgit v1.2.3