murarth/rusti

rusti does not build with latest nightly

Closed this issue · 1 comments

Using rustc 1.5.0-nightly (81b3b27cf 2015-10-11)

src/rusti/exec.rs:320:47: 320:66 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
src/rusti/exec.rs:320         let mut forest = ast_map::Forest::new(lower_crate(&krate));
                                                                    ^~~~~~~~~~~~~~~~~~~
src/rusti/exec.rs:320:47: 320:66 help: run `rustc --explain E0061` to see a detailed explanation
src/rusti/exec.rs:325:13: 325:17 error: mismatched types:
 expected `&rustc::session::Session`,
    found `rustc::session::Session`
(expected &-ptr,
    found struct `rustc::session::Session`) [E0308]
src/rusti/exec.rs:325             sess, ast_map, &arenas, id, MakeGlobMap::No, |tcx, analysis| {
                                  ^~~~
src/rusti/exec.rs:325:13: 325:17 help: run `rustc --explain E0308` to see a detailed explanation
src/rusti/exec.rs:335:45: 335:54 error: the trait `core::iter::FromIterator<std::path::PathBuf>` is not implemented for the type `(_, _)` [E0277]
src/rusti/exec.rs:335                     .filter_map(|(_, p)| p).collect();
                                                                  ^~~~~~~~~
src/rusti/exec.rs:335:45: 335:54 help: run `rustc --explain E0277` to see a detailed explanation
src/rusti/exec.rs:335:45: 335:54 note: a collection of type `(_, _)` cannot be built from an iterator over elements of type `std::path::PathBuf`
src/rusti/exec.rs:348:36: 348:60 error: the type of this value must be known in this context
src/rusti/exec.rs:348         Ok((llmod, deps)) => Some((llmod as llvm::ModuleRef, deps)),
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
src/rusti/exec.rs:383:47: 383:66 error: this function takes 2 parameters but 1 parameter was supplied [E0061]
src/rusti/exec.rs:383         let mut forest = ast_map::Forest::new(lower_crate(&krate));
                                                                    ^~~~~~~~~~~~~~~~~~~
src/rusti/exec.rs:383:47: 383:66 help: run `rustc --explain E0061` to see a detailed explanation
src/rusti/exec.rs:388:13: 388:17 error: mismatched types:
 expected `&rustc::session::Session`,
    found `rustc::session::Session`
(expected &-ptr,
    found struct `rustc::session::Session`) [E0308]
src/rusti/exec.rs:388             sess, ast_map, &arenas, id, MakeGlobMap::No,
                                  ^~~~
src/rusti/exec.rs:388:13: 388:17 help: run `rustc --explain E0308` to see a detailed explanation
src/rusti/exec.rs:387:9: 389:60 error: attempted tuple index `1` on type `R`, but the type was not a tuple or tuple struct
src/rusti/exec.rs:387         driver::phase_3_run_analysis_passes(
src/rusti/exec.rs:388             sess, ast_map, &arenas, id, MakeGlobMap::No,
src/rusti/exec.rs:389                 |tcx, analysis| f(&krate, tcx, analysis)).1
error: aborting due to 7 previous errors
Could not compile `rusti`.

Fixed in the latest commit: 4da03ff
Thanks for the issue!