diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-03 22:29:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 22:29:27 +0200 |
| commit | 0de7f756f034d9be9ea9d00ad994b3d5002f9255 (patch) | |
| tree | 81bd13fdcc06674912638adfe86172270a5746a1 /compiler/rustc_const_eval | |
| parent | 88e9417156629a2d2dd0d32ac107560572b26366 (diff) | |
| parent | 58f107ab567a4cbf167151d0cc5dbe7fcf51762e (diff) | |
| download | rust-0de7f756f034d9be9ea9d00ad994b3d5002f9255.tar.gz rust-0de7f756f034d9be9ea9d00ad994b3d5002f9255.zip | |
Rollup merge of #99746 - compiler-errors:more-trait-engine, r=jackh726
Use `TraitEngine` in more places that don't specifically need `FulfillmentContext::new_in_snapshot` Not sure if this change is worthwhile, but couldn't hurt re: chalkification r? types
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs | 4 |
1 files changed, 2 insertions, 2 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 e0994451172..c8a63c9c3f8 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs @@ -10,7 +10,7 @@ use rustc_middle::mir::*; use rustc_middle::ty::{self, subst::SubstsRef, AdtDef, Ty}; use rustc_span::DUMMY_SP; use rustc_trait_selection::traits::{ - self, FulfillmentContext, ImplSource, Obligation, ObligationCause, SelectionContext, + self, ImplSource, Obligation, ObligationCause, SelectionContext, TraitEngineExt, }; use super::ConstCx; @@ -191,7 +191,7 @@ impl Qualif for NeedsNonConstDrop { // If we successfully found one, then select all of the predicates // implied by our const drop impl. - let mut fcx = FulfillmentContext::new(); + let mut fcx = <dyn TraitEngine<'tcx>>::new(cx.tcx); for nested in impl_src.nested_obligations() { fcx.register_predicate_obligation(&infcx, nested); } |
