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
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue