1 // Chains with comment.
8 // comment after parent
12 .bar() // comment after bar()
21 // Remove nodes that are not dirty
22 .filter(|&(unit, _)| dirties.contains(&unit))
23 // Retain only dirty dependencies of the ones that are dirty
29 .filter(|d| dirties.contains(&d))
34 let y = expr /* comment */.kaas()?
37 let loooooooooooooooooooooooooooooooooooooooooong = does_this?.look?.good?.should_we_break?.after_the_first_question_mark?;
38 let zzzz = expr? // comment after parent
40 .another??? // comment 1
41 .another???? // comment 2
42 .another? // comment 3
45 let y = a.very .loooooooooooooooooooooooooooooooooooooong() /* comment */ .chain()
46 .inside() /* comment */ .weeeeeeeeeeeeeee()? .test() .0
54 |tcx| tcx.lookup_item_type(def_id).generics)?;
55 fooooooooooooooooooooooooooo()?.bar()?.baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz()?;
58 App::new("cargo-cache")
59 .version(crate_version!())
61 .about("Manage cargo cache")
62 .author("matthiaskrgr")
64 SubCommand::with_name("cache")
65 .version(crate_version!())
66 .bin_name("cargo-cache")
67 .about("Manage cargo cache")
68 .author("matthiaskrgr")
73 .arg(&keep_duplicate_crates) .arg(&dry_run)
75 .arg(&auto_clean_expensive),
82 fn dirty_rev_dep_graph(
84 dirties: &HashSet<UnitKey>,
85 ) -> HashMap<UnitKey, HashSet<UnitKey>> {
86 let dirties = self.transitive_dirty_units(dirties);
87 trace!("transitive_dirty_units: {:?}", dirties);
89 self.rev_dep_graph.iter()
90 // Remove nodes that are not dirty
91 .filter(|&(unit, _)| dirties.contains(&unit))
92 // Retain only dirty dependencies of the ones that are dirty
93 .map(|(k, deps)| (k.clone(), deps.iter().cloned().filter(|d| dirties.contains(&d)).collect()))