We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 604f185 commit 72033c9Copy full SHA for 72033c9
compiler/rustc_trait_selection/src/traits/fulfill.rs
@@ -116,12 +116,12 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentContext<'tcx> {
116
fn register_predicate_obligation(
117
&mut self,
118
infcx: &InferCtxt<'tcx>,
119
- obligation: PredicateObligation<'tcx>,
+ mut obligation: PredicateObligation<'tcx>,
120
) {
121
assert_eq!(self.usable_in_snapshot, infcx.num_open_snapshots());
122
// this helps to reduce duplicate errors, as well as making
123
// debug output much nicer to read and so on.
124
- let obligation = infcx.resolve_vars_if_possible(obligation);
+ obligation.predicate = infcx.resolve_vars_if_possible(obligation.predicate);
125
126
debug!(?obligation, "register_predicate_obligation");
127
0 commit comments