1
Fork 0

Call the method fork instead of clone and add proper comments

This commit is contained in:
Santiago Pastorino 2022-02-09 19:37:10 -03:00
parent 3fd89a662a
commit f4bb4500dd
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
9 changed files with 36 additions and 3 deletions

View file

@ -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| {