about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-29 04:23:29 +0100
committerGitHub <noreply@github.com>2023-11-29 04:23:29 +0100
commit82eda5865a881e6b07ce81c9f4cd048e9585d92b (patch)
tree40b1062d418e2ee4735102b303003048fcd64abb /compiler/rustc_data_structures/src/graph
parentf8628a179dbadeeddf59b8d53cae20467f036404 (diff)
parent5c680e1bcb926f76add3f118d17af7f0366b5378 (diff)
downloadrust-82eda5865a881e6b07ce81c9f4cd048e9585d92b.tar.gz
rust-82eda5865a881e6b07ce81c9f4cd048e9585d92b.zip
Rollup merge of #118401 - nnethercote:rustc_ast_lowering, r=compiler-errors
`rustc_ast_lowering` cleanups

Just some cleanups I found while looking through this code.

r? `@spastorino`
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
-rw-r--r--compiler/rustc_data_structures/src/graph/scc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs
index cf9312ea8fb..b54d75f7ed7 100644
--- a/compiler/rustc_data_structures/src/graph/scc/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs
@@ -492,7 +492,7 @@ where
             let returned_walk =
                 return_value.take().into_iter().map(|walk| (*successor_node, Some(walk)));
 
-            let successor_walk = successors.by_ref().map(|successor_node| {
+            let successor_walk = successors.map(|successor_node| {
                 debug!(?node, ?successor_node);
                 (successor_node, self.inspect_node(successor_node))
             });