BookOwl / type-inference

Hindley Milner Type Inference in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build failed!!!!!!!!!!

756445638 opened this issue · comments

error[E0034]: multiple applicable items in scope
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/graph_impl/stable_graph/mod.rs:1172:19
|
1172 | self.iter.find_map(|(i, node)| {
| ^^^^^^^^ multiple find_map found
|
note: candidate #1 is defined in an impl of the trait IterUtilsExt for the type I
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/iter_utils.rs:5:5
|
5 | / fn find_map<F, R>(&mut self, mut f: F) -> Option
6 | | where F: FnMut(Self::Item) -> Option
| |_______________________________________________^
= note: candidate #2 is defined in an impl of the trait Iterator for the type Enumerate<I>
help: disambiguate the associated function for candidate #1
|
1172 | IterUtilsExt::find_map(&mut self.iter, |(i, node)| {
1173 | node.weight.as_ref().map(move |w| (node_index(i), w))
1174 | })
|
help: disambiguate the associated function for candidate #2
|
1172 | Iterator::find_map(&mut self.iter, |(i, node)| {
1173 | node.weight.as_ref().map(move |w| (node_index(i), w))
1174 | })
|

error[E0034]: multiple applicable items in scope
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/graph_impl/stable_graph/mod.rs:1355:19
|
1355 | self.iter.find_map(|(i, edge)|
| ^^^^^^^^ multiple find_map found
|
note: candidate #1 is defined in an impl of the trait IterUtilsExt for the type I
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/iter_utils.rs:5:5
|
5 | / fn find_map<F, R>(&mut self, mut f: F) -> Option
6 | | where F: FnMut(Self::Item) -> Option
| |_______________________________________________^
= note: candidate #2 is defined in an impl of the trait Iterator for the type Enumerate<I>
help: disambiguate the associated function for candidate #1
|
1355 | IterUtilsExt::find_map(&mut self.iter, |(i, edge)|
1356 | edge.weight.as_ref().map(move |weight| {
1357 | EdgeReference {
1358 | index: edge_index(i),
1359 | node: edge.node,
1360 | weight: weight,
...
help: disambiguate the associated function for candidate #2
|
1355 | Iterator::find_map(&mut self.iter, |(i, edge)|
1356 | edge.weight.as_ref().map(move |weight| {
1357 | EdgeReference {
1358 | index: edge_index(i),
1359 | node: edge.node,
1360 | weight: weight,
...

error[E0034]: multiple applicable items in scope
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/graph_impl/stable_graph/mod.rs:1519:19
|
1519 | self.iter.find_map(|(i, node)| {
| ^^^^^^^^ multiple find_map found
|
note: candidate #1 is defined in an impl of the trait IterUtilsExt for the type I
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/iter_utils.rs:5:5
|
5 | / fn find_map<F, R>(&mut self, mut f: F) -> Option
6 | | where F: FnMut(Self::Item) -> Option
| |_______________________________________________^
= note: candidate #2 is defined in an impl of the trait Iterator for the type Enumerate<I>
help: disambiguate the associated function for candidate #1
|
1519 | IterUtilsExt::find_map(&mut self.iter, |(i, node)| {
1520 | if node.weight.is_some() {
1521 | Some(node_index(i))
1522 | } else { None }
1523 | })
|
help: disambiguate the associated function for candidate #2
|
1519 | Iterator::find_map(&mut self.iter, |(i, node)| {
1520 | if node.weight.is_some() {
1521 | Some(node_index(i))
1522 | } else { None }
1523 | })
|

error[E0034]: multiple applicable items in scope
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/graph_impl/stable_graph/mod.rs:1565:19
|
1565 | self.iter.find_map(|(i, node)| {
| ^^^^^^^^ multiple find_map found
|
note: candidate #1 is defined in an impl of the trait IterUtilsExt for the type I
--> /home/yuyang/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.4.9/src/iter_utils.rs:5:5
|
5 | / fn find_map<F, R>(&mut self, mut f: F) -> Option
6 | | where F: FnMut(Self::Item) -> Option
| |_______________________________________________^
= note: candidate #2 is defined in an impl of the trait Iterator for the type Enumerate<I>
help: disambiguate the associated function for candidate #1
|
1565 | IterUtilsExt::find_map(&mut self.iter, |(i, node)| {
1566 | if node.weight.is_some() {
1567 | Some(edge_index(i))
1568 | } else { None }
1569 | })
|
help: disambiguate the associated function for candidate #2
|
1565 | Iterator::find_map(&mut self.iter, |(i, node)| {
1566 | if node.weight.is_some() {
1567 | Some(edge_index(i))
1568 | } else { None }
1569 | })
|

error: aborting due to 4 previous errors

For more information about this error, try rustc --explain E0034.
error: could not compile petgraph

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed