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

@ -130,6 +130,7 @@ impl RegionckMode {
/// `RefCell` and are involved with taking/rolling back snapshots. Snapshot
/// operations are hot enough that we want only one call to `borrow_mut` per
/// call to `start_snapshot` and `rollback_to`.
#[derive(Clone)]
pub struct InferCtxtInner<'tcx> {
/// Cache for projections. This cache is snapshotted along with the infcx.
///