0

I am part of a project writing a kernel and OS in Rust. I am getting many false positives from the external linter (Clippy), such as:

The size for values of type &str cannot be known at compilation time
The size for values of type core::str::Utf8Error cannot be known at compilation time

etc.

I tried running Clippy in Terminal, and I just got other random warnings in my code (correctly).

Expected behavior: No incorrect errors
Received behavior: Incorrect errors

LazyOne
  • 158,824
  • 45
  • 388
  • 391
CATboardBETA
  • 418
  • 6
  • 29
  • 1
    That doesn't sound like a linting error, that sounds like a compiler error. Have you run `cargo check`? What errors does that throw? – isaactfa Nov 07 '22 at 19:00
  • @isaactfa That also throws no errors. It's just when JetBrains parses the clippy external linter (fine with cargo check) stuff that it gets these weird errors. It also compiles just fine. – CATboardBETA Nov 07 '22 at 19:01
  • 1
    Well that is strange. Maybe the clippy and cargo versions went out of sync but I don't know how CLion those dependencies. – isaactfa Nov 07 '22 at 19:03
  • @isaactfa I thought that too, but I'm having this issue on two separate MacBooks. – CATboardBETA Nov 07 '22 at 19:04
  • Could you provide a minimal example that has this issue? A way to download your project where you encounter this issue (if it is open source) would be helpful in assisting you. – James Williams Nov 16 '22 at 20:42

0 Answers0