From ef1b2acf12319b060c26722ddae93c45801a1fce Mon Sep 17 00:00:00 2001 From: varkor Date: Fri, 8 Mar 2019 01:25:57 +0000 Subject: [PATCH] Remove `fold_const` override for `ReverseMapper` Co-Authored-By: Gabriel Smith --- src/librustc/infer/opaque_types/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustc/infer/opaque_types/mod.rs b/src/librustc/infer/opaque_types/mod.rs index 0b35b239c87..6d855821181 100644 --- a/src/librustc/infer/opaque_types/mod.rs +++ b/src/librustc/infer/opaque_types/mod.rs @@ -659,10 +659,6 @@ impl<'cx, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for ReverseMapper<'cx, 'gcx, 'tcx> _ => ty.super_fold_with(self), } } - - fn fold_const(&mut self, ct: &'tcx ty::LazyConst<'tcx>) -> &'tcx ty::LazyConst<'tcx> { - ct // FIXME(const_generics) - } } struct Instantiator<'a, 'gcx: 'tcx, 'tcx: 'a> {