remove outdated comment
This commit is contained in:
parent
baefd42861
commit
0fc5296876
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user