8000 cargo +nightly build racer Error · Issue #1184 · racer-rust/racer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
cargo +nightly build racer Error #1184
Open
@gosoon

Description

@gosoon

Help,build failed in mac.

➜  racer git:(master) cargo -V
cargo 1.62.0-nightly (1ef1e0a12 2022-03-31)

➜  racer git:(master) rustup show
Default host: x86_64-apple-darwin
rustup home:  /Users/feiyu/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin (default)
nightly-2022-04-06-x86_64-apple-darwin
nightly-x86_64-apple-darwin

active toolchain
----------------

nightly-2022-04-06-x86_64-apple-darwin (overridden by '/Users/feiyu/go/src/github.com/racer-rust/racer/rust-toolchain.toml')
rustc 1.62.0-nightly (306ba8357 2022-04-05)
➜  racer git:(master) cargo +nightly build --release
   Compiling racer-interner v0.1.0 
   Compiling racer-cargo-metadata v0.1.2
   Compiling racer v2.2.2 
error[E0432]: unresolved import `rustc_ast::ast::BindingMode`
  --> src/racer/ast_types.rs:21:26
   |
21 | pub use rustc_ast::ast::{BindingMode, Mutability};
   |                          ^^^^^^^^^^^ no `BindingMode` in `ast`

error[E0407]: method `fluent_bundle` is not a member of trait `Emitter`
  --> src/racer/ast.rs:33:5
   |
33 | /     fn fluent_bundle(&self) -> Option<&Lrc<rustc_errors::FluentBundle>> {
34 | |         None
35 | |     }
   | |_____^ not a member of trait `Emitter`

error[E0407]: method `fallback_fluent_bundle` is not a member of trait `Emitter`
  --> src/racer/ast.rs:36:5
   |
36 | /     fn fallback_fluent_bundle(&self) -> &Lrc<rustc_errors::FluentBundle> {
37 | |         unimplemented!("diagnostic translations are unimplemented in racer");
38 | |     }
   | |_____^ not a member of trait `Emitter`

error[E0412]: cannot find type `Lit` in module `ast`
   --> src/racer/ast_types.rs:153:39
    |
153 |     pub(crate) fn from_lit(lit: &ast::Lit) -> Option<Ty> {
    |                                       ^^^ not found in `ast`
    |
help: consider importing this struct
    |
2   | use rustc_ast::token::Lit;
    |
help: if you import `Lit`, refer to it directly
    |
153 -     pub(crate) fn from_lit(lit: &ast::Lit) -> Option<Ty> {
153 +     pub(crate) fn from_lit(lit: &Lit) -> Option<Ty> {
    |

error[E0532]: expected tuple struct or tuple variant, found unit variant `LitKind::Err`
   --> src/racer/ast_types.rs:168:13
    |
168 |             LitKind::Err(_) => None,
    |             ^^^^^^^^^^^^^^^
   --> /rustc/c6fcdb690609769a240fc8ab0de0ce68d5ea7dba/compiler/rustc_ast/src/ast.rs:1816:5
    |
    = note: `LitKind::Err` defined here
    |
help: use this syntax instead
    |
168 |             LitKind::Err => None,
    |             ~~~~~~~~~~~~
help: consider importing one of these items instead
    |
2   | use core::result::Result::Err;
    |
2   | use std::result::Result::Err;
    |
help: if you import `Err`, refer to it directly
    |
168 -             LitKind::Err(_) => None,
168 +             Err(_) => None,
    |

error[E0277]: the trait bound `DummyEmitter: Translate` is not satisfied
  --> src/racer/ast.rs:25:6
   |
25 | impl Emitter for DummyEmitter {
   |      ^^^^^^^ the trait `Translate` is not implemented for `DummyEmitter`
   |
   = help: the following other types implement trait `Translate`:
             AnnotateSnippetEmitterWriter
             EmitterWriter
             JsonEmitter
             SilentEmitter
note: required by a bound in `Emitter`
  --> /rustc/c6fcdb690609769a240fc8ab0de0ce68d5ea7dba/compiler/rustc_errors/src/emitter.rs:204:1

Some errors have detailed explanations: E0277, E0407, E0412, E0432, E0532.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `racer` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0