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`
hmm, did you force-enable incremental? it's turned off on the current stable unless you set an env var
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
I've definitely seen something similar myself
might be some odd Cargo bug?
Maybe I switched branches while
cargo check was running or something like that.