diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-14 15:10:43 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-15 18:30:35 +0000 |
| commit | c774adcbb535e69bffe5be329af006959f897fbd (patch) | |
| tree | c84fe987b44fccc409f3e81d7f78be851dec0ebe /compiler/rustc_middle/src/infer/canonical.rs | |
| parent | 13b4734e3102b4fd5ad99b98a8cc46744faf5d68 (diff) | |
| download | rust-c774adcbb535e69bffe5be329af006959f897fbd.tar.gz rust-c774adcbb535e69bffe5be329af006959f897fbd.zip | |
Split TypeFolder and FallibleTypeFolder
Diffstat (limited to 'compiler/rustc_middle/src/infer/canonical.rs')
| -rw-r--r-- | compiler/rustc_middle/src/infer/canonical.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_middle/src/infer/canonical.rs b/compiler/rustc_middle/src/infer/canonical.rs index 3cd148cd442..5b860374496 100644 --- a/compiler/rustc_middle/src/infer/canonical.rs +++ b/compiler/rustc_middle/src/infer/canonical.rs @@ -39,15 +39,6 @@ pub type CanonicalVarInfo<'tcx> = ir::CanonicalVarInfo<TyCtxt<'tcx>>; pub type CanonicalVarValues<'tcx> = ir::CanonicalVarValues<TyCtxt<'tcx>>; pub type CanonicalVarInfos<'tcx> = &'tcx List<CanonicalVarInfo<'tcx>>; -impl<'tcx> ty::TypeFoldable<TyCtxt<'tcx>> for CanonicalVarInfos<'tcx> { - fn try_fold_with<F: ty::FallibleTypeFolder<TyCtxt<'tcx>>>( - self, - folder: &mut F, - ) -> Result<Self, F::Error> { - ty::util::fold_list(self, folder, |tcx, v| tcx.mk_canonical_var_infos(v)) - } -} - /// When we canonicalize a value to form a query, we wind up replacing /// various parts of it with canonical variables. This struct stores /// those replaced bits to remember for when we process the query |
