about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph/implementation
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-10 12:48:02 +0000
committerbors <bors@rust-lang.org>2023-04-10 12:48:02 +0000
commit2c455530e1d78036e83adbc930a799caadc90022 (patch)
tree7bb888ad6e275594af2ca66ad278c3597f8c736e /compiler/rustc_data_structures/src/graph/implementation
parent949a38509e0f2444361e28e322fda2f74c297c80 (diff)
parentd50fee9fb2e66b4162fbf5496e5abb7d3f29129a (diff)
downloadrust-2c455530e1d78036e83adbc930a799caadc90022.tar.gz
rust-2c455530e1d78036e83adbc930a799caadc90022.zip
Auto merge of #2835 - saethlin:rustup, r=oli-obk
rustup

`@oli-obk` I think this is the resolution we agreed to on Zulip?
Diffstat (limited to 'compiler/rustc_data_structures/src/graph/implementation')
-rw-r--r--compiler/rustc_data_structures/src/graph/implementation/mod.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/rustc_data_structures/src/graph/implementation/mod.rs b/compiler/rustc_data_structures/src/graph/implementation/mod.rs
index 1aa7ac024d9..9ff401c3c7a 100644
--- a/compiler/rustc_data_structures/src/graph/implementation/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/implementation/mod.rs
@@ -206,17 +206,11 @@ impl<N: Debug, E: Debug> Graph<N, E> {
         AdjacentEdges { graph: self, direction, next: first_edge }
     }
 
-    pub fn successor_nodes<'a>(
-        &'a self,
-        source: NodeIndex,
-    ) -> impl Iterator<Item = NodeIndex> + 'a {
+    pub fn successor_nodes(&self, source: NodeIndex) -> impl Iterator<Item = NodeIndex> + '_ {
         self.outgoing_edges(source).targets()
     }
 
-    pub fn predecessor_nodes<'a>(
-        &'a self,
-        target: NodeIndex,
-    ) -> impl Iterator<Item = NodeIndex> + 'a {
+    pub fn predecessor_nodes(&self, target: NodeIndex) -> impl Iterator<Item = NodeIndex> + '_ {
         self.incoming_edges(target).sources()
     }