1
Fork 0

Add another test case + fmt

This commit is contained in:
Deadbeef 2021-09-03 10:04:43 +00:00
parent 49ac725d51
commit 146abdd119
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
4 changed files with 94 additions and 14 deletions

View file

@ -119,10 +119,8 @@ impl Qualif for NeedsNonConstDrop {
// without having the lang item present.
return false;
};
let trait_ref = ty::TraitRef {
def_id: drop_trait,
substs: cx.tcx.mk_substs_trait(ty, &[]),
};
let trait_ref =
ty::TraitRef { def_id: drop_trait, substs: cx.tcx.mk_substs_trait(ty, &[]) };
let obligation = Obligation::new(
ObligationCause::dummy(),
cx.param_env,