diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-09-03 10:04:43 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-09-09 05:21:33 +0000 |
| commit | 146abdd1198d25541b19ce7e17c588f041d88518 (patch) | |
| tree | a1c3d1aa199091b1edcb604c4c84ed93a44d3beb /compiler/rustc_const_eval | |
| parent | 49ac725d51b136698f41b17c64187570d1f28ecd (diff) | |
| download | rust-146abdd1198d25541b19ce7e17c588f041d88518.tar.gz rust-146abdd1198d25541b19ce7e17c588f041d88518.zip | |
Add another test case + fmt
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs index c6f786ca538..dc3927ed85b 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs @@ -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, |
