Skip to content

Commit 765661e

Browse files
committed
re-introduce struct pattern in check_trait_impl
1 parent 0547847 commit 765661e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/formality-check/src/impls.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ use formality_types::{
1919
impl super::Check<'_> {
2020
#[context("check_trait_impl({trait_impl:?})")]
2121
pub(super) fn check_trait_impl(&self, trait_impl: &TraitImpl) -> Fallible<()> {
22+
let TraitImpl { binder, safety: _ } = trait_impl;
23+
2224
let mut env = Env::default();
2325

2426
let TraitImplBoundData {
@@ -27,7 +29,7 @@ impl super::Check<'_> {
2729
trait_parameters,
2830
where_clauses,
2931
impl_items,
30-
} = env.instantiate_universally(&trait_impl.binder);
32+
} = env.instantiate_universally(&binder);
3133

3234
let trait_ref = trait_id.with(self_ty, trait_parameters);
3335

0 commit comments

Comments
 (0)