You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following errors when trying to install rerast:
$ cargo +nightly install rerast
Updating registry `https://github.com/rust-lang/crates.io-index`Downloading rerast v0.1.19Installing rerast v0.1.19Downloading json v0.11.13Downloading rerast_macros v0.1.12Compiling unicode-xid v0.0.4Compiling quote v0.3.15Compiling cfg-if v0.1.3Compiling unicode-width v0.1.5Compiling libc v0.2.42Compiling rustc-demangle v0.1.8Compiling bitflags v1.0.3Compiling either v1.5.0Compiling ansi_term v0.11.0Compiling strsim v0.7.0Compiling lazy_static v0.2.11Compiling vec_map v0.8.1Compiling diff v0.1.11Compiling json v0.11.13Compiling rerast_macros v0.1.12Compiling textwrap v0.9.0Compiling synom v0.11.3Compiling itertools v0.5.10Compiling colored v1.6.0Compiling atty v0.2.10Compiling backtrace v0.3.8Compiling syn v0.11.11Compiling clap v2.31.2Compiling synstructure v0.6.1Compiling failure_derive v0.1.1Compiling failure v0.1.1Compiling rerast v0.1.19
error[E0412]: cannot find type `AnonConst` in module `hir`
--> src/rule_matcher.rs:1087:25
|
1087 | impl Matchablefor hir::AnonConst{
| ^^^^^^^^^ not found in `hir`
error[E0532]:expected tuple struct/variant, found unit variant `Crate`
--> src/rule_matcher.rs:1125:14
|
1125 | (Crate(p_sugar),Crate(c_sugar)) => p_sugar == c_sugar,
| ^^^^^ not a tuple struct/variant
help: possible better candidate is found in another module, you can import it into scope
|
15 | use syntax::ast::VisibilityKind::Crate;
|
error[E0532]:expected tuple struct/variant, found unit variant `Crate`
--> src/rule_matcher.rs:1125:30
|
1125 | (Crate(p_sugar),Crate(c_sugar)) => p_sugar == c_sugar,
| ^^^^^ not a tuple struct/variant
help: possible better candidate is found in another module, you can import it into scope
|
15 | use syntax::ast::VisibilityKind::Crate;
|
error[E0053]: method `build_controller` has an incompatible type for trait
--> src/change_to_rule.rs:260:5
|
260 | / fn build_controller(261 | | self:Box<Self>,262 | | sess:&rustc::session::Session,263 | | matches:&getopts::Matches,
... |
271 | | control
272 | | }
| |_____^ expected mutable reference, found struct `std::boxed::Box`
|
= note:expected type `fn(&mut change_to_rule::RCompilerCalls,&rustc::session::Session,&getopts::Matches) -> rustc_driver::driver::CompileController<'a>`
found type `fn(std::boxed::Box<change_to_rule::RCompilerCalls>,&rustc::session::Session,&getopts::Matches) -> rustc_driver::driver::CompileController<'a>`
error[E0053]: method `build_controller` has an incompatible type for trait
--> src/lib.rs:335:5
|
335 | / fn build_controller(336 | | self:Box<Self>,337 | | sess:&Session,338 | | matches:&getopts::Matches,
... |
347 | | control
348 | | }
| |_____^ expected mutable reference, found struct `std::boxed::Box`
|
= note:expected type `fn(&mutRerastCompilerCalls,&rustc::session::Session,&getopts::Matches) -> rustc_driver::driver::CompileController<'a>`
found type `fn(std::boxed::Box<RerastCompilerCalls>,&rustc::session::Session,&getopts::Matches) -> rustc_driver::driver::CompileController<'a>`
error: aborting due to 5 previous errors
Some errors occurred:E0053,E0412,E0532.For more information about an error, try `rustc --explain E0053`.error: failed to compile `rerast v0.1.19`, intermediate artifacts can be found at `/var/folders/jy/jgttnxcd4750bdcw119bc9cw0000gn/T/cargo-installABdedY`
Caused by:Could not compile `rerast`.To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Thanks for the to report. It looks like you might be using an older version of the nightly compiler. Could you try running "rustup update nightly" then try again? I should expand the instructions in the readme to cover this
I'm getting the following errors when trying to install rerast:
The text was updated successfully, but these errors were encountered: