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>
error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 6 fields
--> /home/thomas28/.cargo/registry/src/github.com-1ecc6299db9ec823/racer-2.2.2/src/racer/ast.rs:232:31
help: use _ to explicitly ignore each field
|
232 | visit::FnKind::Fn(, , ref fnsig, , , ) => &*fn_sig.decl,
| +++
error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 6 fields
--> /home/thomas28/.cargo/registry/src/github.com-1ecc6299db9ec823/racer-2.2.2/src/racer/ast.rs:1261:31
help: use _ to explicitly ignore each field
|
1261 | visit::FnKind::Fn(, , ref fnsig, , , ) => &*fn_sig.decl,
| +++
Some errors have detailed explanations: E0023, E0053.
For more information about an error, try rustc --explain E0023.
error: could not compile racer due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile racer v2.2.2, intermediate artifacts can be found at /tmp/cargo-installODCwvH
I have tried to install racer but I keep getting this error. I couldn't find it anywhere else.
Info
$ rustup show Default host: x86_64-unknown-linux-gnu rustup home: /home/thomas28/.rustup
installed toolchains
stable-x86_64-unknown-linux-gnu (default) nightly-x86_64-unknown-linux-gnu
active toolchain
stable-x86_64-unknown-linux-gnu (default) rustc 1.60.0 (7737e0b5c 2022-04-04)
$rustup update info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' info: checking for self-updates
stable-x86_64-unknown-linux-gnu unchanged - rustc 1.60.0 (7737e0b5c 2022-04-04) nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.62.0-nightly (f4ec0e7cf 2022-04-22)
info: cleaning up downloads & tmp directories
Fail
fallback_fluent_bundle
has an incompatible type for trait --> /home/thomas28/.cargo/registry/src/github.com-1ecc6299db9ec823/racer-2.2.2/src/racer/ast.rs:36:41fluent_bundle::bundle::FluentBundle
, found structLrc
&fluent_bundle::bundle::FluentBundle<fluent_bundle::resource::FluentResource, intl_memoizer::IntlLangMemoizer>
= note: expected fn pointer
fn(&DummyEmitter) -> &fluent_bundle::bundle::FluentBundle<fluent_bundle::resource::FluentResource, intl_memoizer::IntlLangMemoizer>
found fn pointerfn(&DummyEmitter) -> &Lrc<fluent_bundle::bundle::FluentBundle<fluent_bundle::resource::FluentResource, intl_memoizer::IntlLangMemoizer>>
help: use
_
to explicitly ignore each field | 232 | visit::FnKind::Fn(, , ref fnsig, , , ) => &*fn_sig.decl, | +++help: use
_
to explicitly ignore each field | 1261 | visit::FnKind::Fn(, , ref fnsig, , , ) => &*fn_sig.decl, | +++Some errors have detailed explanations: E0023, E0053. For more information about an error, try
rustc --explain E0023
. error: could not compileracer
due to 3 previous errors warning: build failed, waiting for other jobs to finish... error: failed to compileracer v2.2.2
, intermediate artifacts can be found at/tmp/cargo-installODCwvH