Skip to content

Commit

Permalink
remove dead iterator code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Oct 15, 2018
1 parent 6ace43c commit be02f74
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/librustc_mir/borrow_check/nll/region_infer/values.rs
Expand Up @@ -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
Expand Down

0 comments on commit be02f74

Please sign in to comment.