diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs index 783164d2806c..eade5154c8ad 100644 --- a/src/librustc/ty/structural_impls.rs +++ b/src/librustc/ty/structural_impls.rs @@ -1061,6 +1061,11 @@ impl<'tcx> TypeFoldable<'tcx> for InferConst<'tcx> { } } +// Does the equivalent of +// ``` +// let v = self.iter().map(|p| p.fold_with(folder)).collect::>(); +// folder.tcx().intern_*(&v) +// ``` fn fold_list<'tcx, F, T>( list: &'tcx ty::List, folder: &mut F,