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
|
@ -70,7 +70,7 @@ pub struct ProjectionCache<'a, 'tcx> {
|
|||
undo_log: &'a mut InferCtxtUndoLogs<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct ProjectionCacheStorage<'tcx> {
|
||||
map: SnapshotMapStorage<ProjectionCacheKey<'tcx>, ProjectionCacheEntry<'tcx>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue