about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorAndrew Xie <ndrew.xie@gmail.com>2023-05-08 17:26:17 -0400
committerAndrew Xie <ndrew.xie@gmail.com>2023-06-04 21:55:32 -0400
commit6f2d3dee1790f8066394d1198fd1864b5fae45a3 (patch)
tree633b4171f38ce68f1bdfe6d6a9eee37931492f9f /compiler/rustc_data_structures/src
parent96b577860d4e175ccc4698b9e9a8a822b228fc19 (diff)
downloadrust-6f2d3dee1790f8066394d1198fd1864b5fae45a3.tar.gz
rust-6f2d3dee1790f8066394d1198fd1864b5fae45a3.zip
Fixed unord mistake
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/unord.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_data_structures/src/unord.rs b/compiler/rustc_data_structures/src/unord.rs
index 02957b38efe..6c8d5414631 100644
--- a/compiler/rustc_data_structures/src/unord.rs
+++ b/compiler/rustc_data_structures/src/unord.rs
@@ -63,11 +63,6 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
     }
 
     #[inline]
-    pub fn for_each<F: Fn(T) -> ()>(self, f: F) {
-        self.0.for_each(|x| f(x));
-    }
-
-    #[inline]
     pub fn max(self) -> Option<T>
     where
         T: Ord,