Skip to content

Commit be02f74

Browse files
committed
remove dead iterator code
1 parent 6ace43c commit be02f74

File tree

1 file changed

+0
-13
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+0
-13
lines changed

src/librustc_mir/borrow_check/nll/region_infer/values.rs

-13
Original file line numberDiff line numberDiff line change
@@ -252,19 +252,6 @@ impl PlaceholderIndices {
252252
}
253253
}
254254

255-
impl ::std::iter::FromIterator<ty::Placeholder> for PlaceholderIndices {
256-
fn from_iter<I>(iter: I) -> Self
257-
where
258-
I: IntoIterator<Item = ty::Placeholder>,
259-
{
260-
let mut result = Self::default();
261-
iter.into_iter().for_each(|p| {
262-
result.insert(p);
263-
});
264-
result
265-
}
266-
}
267-
268255
/// Stores the full values for a set of regions (in contrast to
269256
/// `LivenessValues`, which only stores those points in the where a
270257
/// region is live). The full value for a region may contain points in

0 commit comments

Comments
 (0)