]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_incremental/src/assert_dep_graph.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / compiler / rustc_incremental / src / assert_dep_graph.rs
index 69e482ce854c063a2b300c7c7068531c9aca0ff1..67b4d6d6959f602c042889c168d0047adf2fbd5b 100644 (file)
@@ -249,7 +249,7 @@ fn dump_graph(query: &DepGraphQuery) {
         // dump a .txt file with just the edges:
         let txt_path = format!("{}.txt", path);
         let mut file = BufWriter::new(File::create(&txt_path).unwrap());
-        for &(ref source, ref target) in &edges {
+        for (source, target) in &edges {
             write!(file, "{:?} -> {:?}\n", source, target).unwrap();
         }
     }
@@ -432,10 +432,7 @@ fn recurse(query: &DepGraphQuery, node_states: &mut [State], node: NodeIndex) ->
     }
 }
 
-fn filter_edges<'q>(
-    query: &'q DepGraphQuery,
-    nodes: &FxHashSet<DepKind>,
-) -> Vec<(DepKind, DepKind)> {
+fn filter_edges(query: &DepGraphQuery, nodes: &FxHashSet<DepKind>) -> Vec<(DepKind, DepKind)> {
     let uniq: FxHashSet<_> = query
         .edges()
         .into_iter()