Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in racer v2.2.2 #1181

Closed
killme2008 opened this issue Apr 14, 2022 · 2 comments
Closed

Build error in racer v2.2.2 #1181

killme2008 opened this issue Apr 14, 2022 · 2 comments

Comments

@killme2008
Copy link

I ran command cargo +nightly install racer on mac, but it failed with an error as below:

36 |     fn fallback_fluent_bundle(&self) -> &Lrc<rustc_errors::FluentBundle> {
   |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |                                         |
   |                                         expected struct `fluent_bundle::bundle::FluentBundle`, found struct `Lrc`
   |                                         help: change the output type to match the trait: `&fluent_bundle::bundle::FluentBundle<fluent_bundle::resource::FluentResource, intl_memoizer::IntlLangMemoizer>`

Some information may be useful:

➜  ~ rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)
@calebcartwright
Copy link
Contributor

First want to note that racer is essentially end of life and users are encouraged to use alternatives like Rust Analyzer instead.

This is functionally a duplicate of similar issues, e.g. #1173, but if for some reason you still need to build racer then you need to use a supported nightly toolchain, not just any nightly toolchain.

The easiest way to identify a supported nightly toolchain is to look at the toolchain file in the repo:

channel = "nightly-2022-04-06"

@killme2008
Copy link
Author

@calebcartwright thank you, i will try it.

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

No branches or pull requests

2 participants