/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:256:35: 256:46 error: no method named `downgrade` found for type `&alloc::rc::Rc<node::Node>` in the current scope
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:256 depends_on.deref_mut().push(dep.downgrade());
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:256:35: 256:46 note: found defined static methods, maybe a `self` is missing?
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:256:35: 256:46 note: candidate #1 is defined in an impl for the type `alloc::rc::Rc<_>`
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:256 depends_on.deref_mut().push(dep.downgrade());
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:259:28: 259:39 error: no method named `downgrade` found for type `&alloc::rc::Rc<node::Node>` in the current scope
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:259 rev_depends_on.push(node.downgrade());
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:259:28: 259:39 note: found defined static methods, maybe a `self` is missing?
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:259:28: 259:39 note: candidate #1 is defined in an impl for the type `alloc::rc::Rc<_>`
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/builder/mod.rs:259 rev_depends_on.push(node.downgrade());
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/node.rs:109:21: 109:32 error: no method named `downgrade` found for type `alloc::rc::Rc<node::Node>` in the current scope
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/node.rs:109 let weak = node.downgrade();
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/node.rs:109:21: 109:32 note: found defined static methods, maybe a `self` is missing?
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/node.rs:109:21: 109:32 note: candidate #1 is defined in an impl for the type `alloc::rc::Rc<_>`
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/node.rs:109 let weak = node.downgrade();
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:129:40: 129:51 error: no method named `downgrade` found for type `&alloc::rc::Rc<node::Node>` in the current scope
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:129 map.insert(name.clone(), n.downgrade());
^~~~~~~~~~~
note: in expansion of for loop expansion
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:105:5: 134:6 note: expansion site
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:129:40: 129:51 note: found defined static methods, maybe a `self` is missing?
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:129:40: 129:51 note: candidate #1 is defined in an impl for the type `alloc::rc::Rc<_>`
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:129 map.insert(name.clone(), n.downgrade());
^~~~~~~~~~~
note: in expansion of for loop expansion
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:105:5: 134:6 note: expansion site
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:208:26: 208:37 error: no method named `downgrade` found for type `alloc::rc::Rc<node::Node>` in the current scope
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:208 let weak_node = node.downgrade();
^~~~~~~~~~~
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:208:26: 208:37 note: found defined static methods, maybe a `self` is missing?
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:208:26: 208:37 note: candidate #1 is defined in an impl for the type `alloc::rc::Rc<_>`
/Users/stefan/.cargo/git/checkouts/zinc-29067562b67e219e/master/platformtree/src/parser.rs:208 let weak_node = node.downgrade();
^~~~~~~~~~~
Compiling syntaxext_lint v0.1.1
error: aborting due to 5 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `platformtree`.
When I remove platformtree from my dependencies, I get another error compiling core
/Users/stefan/.cargo/git/checkouts/rust-libcore-a3e1d25b35d5cd12/master/rust/src/libcore/lib.rs:125:9: 125:16 error: file for module `prelude` found at both prelude.rs and prelude/mod.rs
/Users/stefan/.cargo/git/checkouts/rust-libcore-a3e1d25b35d5cd12/master/rust/src/libcore/lib.rs:125 pub mod prelude;
^~~~~~~
/Users/stefan/.cargo/git/checkouts/rust-libcore-a3e1d25b35d5cd12/master/rust/src/libcore/lib.rs:125:9: 125:16 help: delete or rename one of them to remove the ambiguity
I tried to setup a project using zinc I ran into issues compiling core and platformtree
I use this command to build my project
and I get this error message
When I remove platformtree from my dependencies, I get another error compiling core
My Cargo.tom looks like this:
and my main.rs like this:
I get the same errors when I try to compile one of the examples
I use the latest rustc nightly build