Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Failed to build from master #1526

Closed
norru opened this issue Jul 26, 2019 · 3 comments
Closed

Failed to build from master #1526

norru opened this issue Jul 26, 2019 · 3 comments

Comments

@norru
Copy link

norru commented Jul 26, 2019

commit 59b77bc20831127f1398d8ab1129b7deeb9b901c (HEAD -> master, origin/master, itadinanta/master, itadinanta/HEAD)
Merge: 9d4e7f5 adf13c2
Author: Igor Matuszewski <Xanewok@gmail.com>
Date:   Wed Jul 24 15:07:07 2019 +0200

    Merge pull request #1459 from p-avital/master
    
    Changed test detection regex to expand its scope

error[E0053]: method `after_parsing` has an incompatible type for trait
   --> rls/src/build/rustc.rs:158:5
    |
158 |     fn after_parsing(&mut self, _compiler: &interface::Compiler) -> Compilation {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bool, found enum `build::rustc::rustc_driver::Compilation`
    |
    = note: expected type `fn(&mut build::rustc::RlsRustcCalls, &build::rustc::rustc_interface::interface::Compiler) -> bool`
               found type `fn(&mut build::rustc::RlsRustcCalls, &build::rustc::rustc_interface::interface::Compiler) -> build::rustc::rustc_driver::Compilation`

error[E0053]: method `after_analysis` has an incompatible type for trait
   --> rls/src/build/rustc.rs:169:5
    |
169 |     fn after_analysis(&mut self, compiler: &interface::Compiler) -> Compilation {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bool, found enum `build::rustc::rustc_driver::Compilation`
    |
    = note: expected type `fn(&mut build::rustc::RlsRustcCalls, &build::rustc::rustc_interface::interface::Compiler) -> bool`
               found type `fn(&mut build::rustc::RlsRustcCalls, &build::rustc::rustc_interface::interface::Compiler) -> build::rustc::rustc_driver::Compilation`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0053`.
error: Could not compile `rls`.

To learn more, run the command again with --verbose.
nico@devuan-3xS:~/Projects/3rdParty/rls$ cargo --version
cargo 1.38.0-nightly (677a180f4 2019-07-08)
nico@devuan-3xS:~/Projects/3rdParty/rls$ rustc --version
rustc 1.38.0-nightly (07e0c3651 2019-07-16)
@Xanewok
Copy link
Member

Xanewok commented Jul 26, 2019

This requires more recent nightly (one that includes rust-lang/rust#62679, merged ~7 days ago), so closing.

@Xanewok Xanewok closed this as completed Jul 26, 2019
@norru
Copy link
Author

norru commented Jul 26, 2019

@Xanewok Cannot update to latest nightly though.

info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2019-07-26, rust version 1.38.0-nightly (890881f8f 2019-07-25)
error: some components unavailable for download: 'rls', 'clippy', 'rustfmt' for channel 'nightly'

Would you mind recommending a full toolchain from the last few weeks? I can't find one here: https://rust-lang.github.io/rustup-components-history/

@norru
Copy link
Author

norru commented Jul 26, 2019

Never mind, I'll just pick this up again when dust has settled.

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

No branches or pull requests

2 participants