about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-09-28 15:52:54 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-10-15 11:42:07 -0400
commitbe02f74ea9f6ba641358322f140c697a8842e79b (patch)
tree7e34c10df0a47085a072c17f61ae3392b5f884b1
parent6ace43cf77803ccb854fdcd31bde70860cb84613 (diff)
downloadrust-be02f74ea9f6ba641358322f140c697a8842e79b.tar.gz
rust-be02f74ea9f6ba641358322f140c697a8842e79b.zip
remove dead iterator code
-rw-r--r--src/librustc_mir/borrow_check/nll/region_infer/values.rs13
1 files changed, 0 insertions, 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 3bd3cb2995b..f9c1c11c62a 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<ty::Placeholder> for PlaceholderIndices {
-    fn from_iter<I>(iter: I) -> Self
-    where
-        I: IntoIterator<Item = ty::Placeholder>,
-    {
-        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