Call the method fork instead of clone and add proper comments
This commit is contained in:
parent
3fd89a662a
commit
f4bb4500dd
9 changed files with 36 additions and 3 deletions
|
@ -379,7 +379,7 @@ fn negative_impl_exists<'cx, 'tcx>(
|
|||
region_context: DefId,
|
||||
o: &PredicateObligation<'tcx>,
|
||||
) -> bool {
|
||||
let infcx = selcx.infcx().clone();
|
||||
let infcx = &selcx.infcx().fork();
|
||||
let tcx = infcx.tcx;
|
||||
o.flip_polarity(tcx)
|
||||
.map(|o| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue