Skip to content

Commit 4d7d13b

Browse files
committed
w
1 parent 372c506 commit 4d7d13b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

compiler/rustc_infer/src/infer/snapshot/check_leaks.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::VariableLengths;
2+
use crate::infer::InferCtxt;
23
use rustc_middle::ty::{self, Ty, TyCtxt};
3-
use rustc_middle::ty::{TypeVisitor, TypeSuperVisitable};
4+
use rustc_middle::ty::{TypeSuperVisitable, TypeVisitor};
45
use std::ops::ControlFlow;
5-
use crate::infer::InferCtxt;
66

77
pub struct HasSnapshotLeaksVisitor {
88
universe: ty::UniverseIndex,
@@ -105,7 +105,9 @@ macro_rules! type_foldable_verify_no_snapshot_leaks {
105105
impl<$tcx> $crate::infer::snapshot::NoSnapshotLeaks<$tcx> for $t {
106106
type DataStart = HasSnapshotLeaksVisitor;
107107
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 {
109111
HasSnapshotLeaksVisitor::new(infcx)
110112
}
111113
fn mk_data_snapshot_end(
@@ -128,4 +130,4 @@ macro_rules! type_foldable_verify_no_snapshot_leaks {
128130
}
129131
};
130132
};
131-
}
133+
}

0 commit comments

Comments
 (0)