remove outdated comment

This commit is contained in:
lcnr 2022-07-12 15:29:32 +02:00
parent baefd42861
commit 0fc5296876

View File

@ -155,14 +155,14 @@ fn fully_perform(self, infcx: &InferCtxt<'_, 'tcx>) -> Fallible<TypeOpOutput<'tc
}
}
// Promote the final query-region-constraints into a
// (optional) ref-counted vector:
let region_constraints = if region_constraints.is_empty() {
None
} else {
Some(&*infcx.tcx.arena.alloc(region_constraints))
};
Ok(TypeOpOutput { output, constraints: region_constraints, error_info })
Ok(TypeOpOutput {
output,
constraints: if region_constraints.is_empty() {
None
} else {
Some(infcx.tcx.arena.alloc(region_constraints))
},
error_info,
})
}
}