File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3560,13 +3560,6 @@ impl<'tcx> TraitObligation<'tcx> {
35603560 }
35613561}
35623562
3563- impl < ' tcx > EvaluationCache < ' tcx > {
3564- /// Actually frees the underlying memory in contrast to what stdlib containers do on `clear`
3565- pub fn clear ( & self ) {
3566- * self . hashmap . borrow_mut ( ) = Default :: default ( ) ;
3567- }
3568- }
3569-
35703563impl < ' o , ' tcx > TraitObligationStack < ' o , ' tcx > {
35713564 fn list ( & ' o self ) -> TraitObligationStackList < ' o , ' tcx > {
35723565 TraitObligationStackList :: with ( self )
Original file line number Diff line number Diff line change @@ -265,6 +265,13 @@ pub struct EvaluationCache<'tcx> {
265265 > ,
266266}
267267
268+ impl < ' tcx > EvaluationCache < ' tcx > {
269+ /// Actually frees the underlying memory in contrast to what stdlib containers do on `clear`
270+ pub fn clear ( & self ) {
271+ * self . hashmap . borrow_mut ( ) = Default :: default ( ) ;
272+ }
273+ }
274+
268275#[ derive( Clone , Eq , PartialEq ) ]
269276pub struct WithDepNode < T > {
270277 dep_node : DepNodeIndex ,
You can’t perform that action at this time.
0 commit comments