Stream: t-compiler/rust-analyzer

Topic: Incremental compilation bug


Laurențiu (Jun 07 2021 at 07:57, on Zulip):

Just got this on cargo check --tests, but running cargo clean fixed it:

error[E0599]: no function or associated item named `new` found for struct `Documentation` in the current scope
  --> crates/ide_completion/src/completions/attribute/lint.rs:28:52
   |
28 |                 .documentation(hir::Documentation::new(lint_completion.description.to_owned()));
   |                                                    ^^^ function or associated item not found in `Documentation`
Jonas Schievink [he/him] (Jun 07 2021 at 11:14, on Zulip):

hmm, did you force-enable incremental? it's turned off on the current stable unless you set an env var

Laurențiu (Jun 07 2021 at 11:33, on Zulip):

Right, it must be something else. Not really actionable, just mentioned it in case someone else runs into it. I.. spent quite some time trying to figure out what was wrong with the code

Jonas Schievink [he/him] (Jun 07 2021 at 11:34, on Zulip):

I've definitely seen something similar myself

Jonas Schievink [he/him] (Jun 07 2021 at 11:34, on Zulip):

might be some odd Cargo bug?

Laurențiu (Jun 07 2021 at 11:36, on Zulip):

Maybe I switched branches while cargo check was running or something like that.

Last update: Jul 24 2021 at 21:30UTC