File tree 1 file changed +6
-4
lines changed
compiler/rustc_infer/src/infer/snapshot
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
use super :: VariableLengths ;
2
+ use crate :: infer:: InferCtxt ;
2
3
use rustc_middle:: ty:: { self , Ty , TyCtxt } ;
3
- use rustc_middle:: ty:: { TypeVisitor , TypeSuperVisitable } ;
4
+ use rustc_middle:: ty:: { TypeSuperVisitable , TypeVisitor } ;
4
5
use std:: ops:: ControlFlow ;
5
- use crate :: infer:: InferCtxt ;
6
6
7
7
pub struct HasSnapshotLeaksVisitor {
8
8
universe : ty:: UniverseIndex ,
@@ -105,7 +105,9 @@ macro_rules! type_foldable_verify_no_snapshot_leaks {
105
105
impl <$tcx> $crate:: infer:: snapshot:: NoSnapshotLeaks <$tcx> for $t {
106
106
type DataStart = HasSnapshotLeaksVisitor ;
107
107
type DataEnd = HasSnapshotLeaksVisitor ;
108
- fn mk_data_snapshot_start( infcx: & $crate:: infer:: InferCtxt <$tcx>) -> Self :: DataStart {
108
+ fn mk_data_snapshot_start(
109
+ infcx: & $crate:: infer:: InferCtxt <$tcx>,
110
+ ) -> Self :: DataStart {
109
111
HasSnapshotLeaksVisitor :: new( infcx)
110
112
}
111
113
fn mk_data_snapshot_end(
@@ -128,4 +130,4 @@ macro_rules! type_foldable_verify_no_snapshot_leaks {
128
130
}
129
131
} ;
130
132
} ;
131
- }
133
+ }
You can’t perform that action at this time.
0 commit comments