Skip to content

Commit fcf2236

Browse files
committed
Auto merge of #8255 - alexcrichton:update-im-rc, r=Eh2406
Update `im-rc` to 15.0.0 Hopefully just a routine update triggered by dependabot!
2 parents 13bded9 + b5c1919 commit fcf2236

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ walkdir = "2.2"
6868
clap = "2.31.2"
6969
unicode-width = "0.1.5"
7070
openssl = { version = '0.10.11', optional = true }
71-
im-rc = "14.0.0"
71+
im-rc = "15.0.0"
7272

7373
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
7474
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`

src/cargo/core/resolver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ fn generalize_conflicting(
844844
for (critical_parent, critical_parents_deps) in
845845
cx.parents.edges(&backtrack_critical_id).filter(|(p, _)| {
846846
// it will only help backjump further if it is older then the critical_age
847-
cx.is_active(*p).expect("parent not currently active!?") < backtrack_critical_age
847+
cx.is_active(**p).expect("parent not currently active!?") < backtrack_critical_age
848848
})
849849
{
850850
for critical_parents_dep in critical_parents_deps.iter() {

src/cargo/util/graph.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<N: Eq + Ord + Clone, E: Default + Clone> Graph<N, E> {
3737
self.nodes.get(from)?.get(to)
3838
}
3939

40-
pub fn edges(&self, from: &N) -> impl Iterator<Item = &(N, E)> {
40+
pub fn edges(&self, from: &N) -> impl Iterator<Item = (&N, &E)> {
4141
self.nodes.get(from).into_iter().flat_map(|x| x.iter())
4242
}
4343

@@ -95,8 +95,8 @@ impl<N: Eq + Ord + Clone, E: Default + Clone> Graph<N, E> {
9595
p.iter()
9696
// Note that we can have "cycles" introduced through dev-dependency
9797
// edges, so make sure we don't loop infinitely.
98-
.find(|&(node, _)| !result.contains(&node))
99-
.map(|(ref p, _)| p)
98+
.find(|(node, _)| !result.contains(node))
99+
.map(|(p, _)| p)
100100
}) {
101101
result.push(p);
102102
pkg = p;
@@ -114,11 +114,11 @@ impl<N: Eq + Ord + Clone, E: Default + Clone> Graph<N, E> {
114114
let first_pkg_depending_on = |pkg: &N, res: &[&N]| {
115115
self.nodes
116116
.iter()
117-
.filter(|&(_, adjacent)| adjacent.contains_key(pkg))
117+
.filter(|(_, adjacent)| adjacent.contains_key(pkg))
118118
// Note that we can have "cycles" introduced through dev-dependency
119119
// edges, so make sure we don't loop infinitely.
120-
.find(|&(node, _)| !res.contains(&node))
121-
.map(|(ref p, _)| p)
120+
.find(|(node, _)| !res.contains(node))
121+
.map(|(p, _)| p)
122122
};
123123
while let Some(p) = first_pkg_depending_on(pkg, &result) {
124124
result.push(p);

0 commit comments

Comments
 (0)