You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deliberately did not implement this because our lint handling isn't complete (e.g. I think it is disabled in proc macros for some reason), and also we will need a way to tell whether some lint is (fully) implemented.
This will also be quite hard to achieve: if we have an #[expect(...)] mod foo; declaration in a file, we need to check all lints in foo.rs to determine if we should warn, which means checking foo's children up to the entire crate. Since we don't want a diagnostics request to be that expensive, that means caching the diagnostics of a file, and the only way to cache between requests is in the DB. But if it's in the DB, it cannot be in crates/ide-diagnostics, and all handlers depend on IDE functionality...
Imo this is something we shouldn't even bother implementing. Any small divergence between r-a and rustc could make us emit a false diagnostic from this. "Having to" fallback to cargo for this to be checked seem absolutely fine in my eyes as this is purely a check that your allow is actually doing something.
The other half of #18056.
The text was updated successfully, but these errors were encountered: