From be02f74ea9f6ba641358322f140c697a8842e79b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 28 Sep 2018 15:52:54 -0400 Subject: [PATCH] remove dead iterator code --- .../borrow_check/nll/region_infer/values.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/librustc_mir/borrow_check/nll/region_infer/values.rs b/src/librustc_mir/borrow_check/nll/region_infer/values.rs index 3bd3cb2995b3..f9c1c11c62a0 100644 --- a/src/librustc_mir/borrow_check/nll/region_infer/values.rs +++ b/src/librustc_mir/borrow_check/nll/region_infer/values.rs @@ -252,19 +252,6 @@ impl PlaceholderIndices { } } -impl ::std::iter::FromIterator for PlaceholderIndices { - fn from_iter(iter: I) -> Self - where - I: IntoIterator, - { - let mut result = Self::default(); - iter.into_iter().for_each(|p| { - result.insert(p); - }); - result - } -} - /// Stores the full values for a set of regions (in contrast to /// `LivenessValues`, which only stores those points in the where a /// region is live). The full value for a region may contain points in