Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

error: multiple applicable items in scope #595

Closed
jubalh opened this issue Nov 22, 2018 · 7 comments
Closed

error: multiple applicable items in scope #595

jubalh opened this issue Nov 22, 2018 · 7 comments

Comments

@jubalh
Copy link
Contributor

jubalh commented Nov 22, 2018

It seems that way-cooler 0.8.0 doesn't build on openSUSE Tumbleweed anymore. I guess this is due to an update of rust in the distro.

[  108s] error[E0034]: multiple applicable items in scope
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/graph_impl/stable_graph/mod.rs:1173:19
[  108s]      |
[  108s] 1173 |         self.iter.find_map(|(i, node)| {
[  108s]      |                   ^^^^^^^^ multiple `find_map` found
[  108s]      |
[  108s] note: candidate #1 is defined in an impl of the trait `iter_utils::IterUtilsExt` for the type `_`
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/iter_utils.rs:5:5
[  108s]      |
[  108s] 5    | /     fn find_map<F, R>(&mut self, mut f: F) -> Option<R>
[  108s] 6    | |         where F: FnMut(Self::Item) -> Option<R>
[  108s] 7    | |     {
[  108s] 8    | |         while let Some(elt) = self.next() {
[  108s] ...    |
[  108s] 13   | |         None
[  108s] 14   | |     }
[  108s]      | |_____^
[  108s]      = note: candidate #2 is defined in an impl of the trait `std::iter::Iterator` for the type `std::iter::Enumerate<_>`
[  108s] 
[  108s] error[E0034]: multiple applicable items in scope
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/graph_impl/stable_graph/mod.rs:1365:19
[  108s]      |
[  108s] 1365 |         self.iter.find_map(|(i, edge)|
[  108s]      |                   ^^^^^^^^ multiple `find_map` found
[  108s]      |
[  108s] note: candidate #1 is defined in an impl of the trait `iter_utils::IterUtilsExt` for the type `_`
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/iter_utils.rs:5:5
[  108s]      |
[  108s] 5    | /     fn find_map<F, R>(&mut self, mut f: F) -> Option<R>
[  108s] 6    | |         where F: FnMut(Self::Item) -> Option<R>
[  108s] 7    | |     {
[  108s] 8    | |         while let Some(elt) = self.next() {
[  108s] ...    |
[  108s] 13   | |         None
[  108s] 14   | |     }
[  108s]      | |_____^
[  108s]      = note: candidate #2 is defined in an impl of the trait `std::iter::Iterator` for the type `std::iter::Enumerate<_>`
[  108s] 
[  108s] error[E0034]: multiple applicable items in scope
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/graph_impl/stable_graph/mod.rs:1529:19
[  108s]      |
[  108s] 1529 |         self.iter.find_map(|(i, node)| {
[  108s]      |                   ^^^^^^^^ multiple `find_map` found
[  108s]      |
[  108s] note: candidate #1 is defined in an impl of the trait `iter_utils::IterUtilsExt` for the type `_`
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/iter_utils.rs:5:5
[  108s]      |
[  108s] 5    | /     fn find_map<F, R>(&mut self, mut f: F) -> Option<R>
[  108s] 6    | |         where F: FnMut(Self::Item) -> Option<R>
[  108s] 7    | |     {
[  108s] 8    | |         while let Some(elt) = self.next() {
[  108s] ...    |
[  108s] 13   | |         None
[  108s] 14   | |     }
[  108s]      | |_____^
[  108s]      = note: candidate #2 is defined in an impl of the trait `std::iter::Iterator` for the type `std::iter::Enumerate<_>`
[  108s] 
[  108s] error[E0034]: multiple applicable items in scope
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/graph_impl/stable_graph/mod.rs:1575:19
[  108s]      |
[  108s] 1575 |         self.iter.find_map(|(i, node)| {
[  108s]      |                   ^^^^^^^^ multiple `find_map` found
[  108s]      |
[  108s] note: candidate #1 is defined in an impl of the trait `iter_utils::IterUtilsExt` for the type `_`
[  108s]     --> /home/abuild/rpmbuild/BUILD/way-cooler-0.8.0/vendor/petgraph/src/iter_utils.rs:5:5
[  108s]      |
[  108s] 5    | /     fn find_map<F, R>(&mut self, mut f: F) -> Option<R>
[  108s] 6    | |         where F: FnMut(Self::Item) -> Option<R>
[  108s] 7    | |     {
[  108s] 8    | |         while let Some(elt) = self.next() {
[  108s] ...    |
[  108s] 13   | |         None
[  108s] 14   | |     }
[  108s]      | |_____^
[  108s]      = note: candidate #2 is defined in an impl of the trait `std::iter::Iterator` for the type `std::iter::Enumerate<_>`
[  108s] 
[  109s] error: aborting due to 4 previous errors

For full log please see the link in the beginning.

@AdminXVII
Copy link
Contributor

AdminXVII commented Nov 22, 2018

petgraph/petgraph#223
Seems like your build system uses aho-corasick v0.5.3 instead of v0.6.9.

@AdminXVII
Copy link
Contributor

AdminXVII commented Nov 22, 2018

A push to crates.io would be required.

@jubalh
Copy link
Contributor Author

jubalh commented Nov 22, 2018

A push to crates.io would be required.

From whom?

@AdminXVII
Copy link
Contributor

Probably from @Timidger

Timidger added a commit that referenced this issue Nov 22, 2018
This was causing a compilation issue with Rust 1.30, see
#595
@Timidger
Copy link
Member

I have published a new crates.io version (v0.8.1) to address this.

@jubalh
Copy link
Contributor Author

jubalh commented Nov 22, 2018

Thanks for acting so quickly.

@Timidger
Copy link
Member

No problem, no Thanksgiving is complete without a working Way Cooler installation 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants