1
Fork 0

Bless chalk tests

This commit is contained in:
Michael Goulet 2022-07-30 05:43:26 +00:00
parent 2257ba92db
commit 29dccfe9e4
5 changed files with 72 additions and 41 deletions

View file

@ -867,7 +867,8 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
);
}
let is_fn_trait = ty::ClosureKind::from_def_id(tcx, trait_ref.def_id()).is_some();
let is_fn_trait =
ty::ClosureKind::from_def_id(tcx, trait_ref.def_id()).is_some();
let is_target_feature_fn = if let ty::FnDef(def_id, _) =
*trait_ref.skip_binder().self_ty().kind()
{