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
Problem
The feature soundness lints are useful but clippy is not very helpful when determining the correct visibilities and features. At least sometimes I don't understand immediately why clippy is allowing some things but not others. Take for example this clippy run. It complains about a function that is apparently never used, but it is used, just in a module that happens to have a cfg(any(feature = "csr", feature = "ssr")) annotation somewhere further up in the module hierarchy. It's a pain to figure that out, since the tooling doesn't help much in reasoning why the function is unused.
Expected behavior
A clear module tree and feature dependencies. When searching cfg(feature, I get 168 results across the code base. That's too many to reasonably figure out which impact what part.
Questionnaire
I'm interested in fixing this myself but don't know where to start
I would like to fix and I have a solution
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered:
This is unfortunate, but not that clippy is wrong in any way.
When clippy runs with a certain feature flag, it treats all code that is flagged as inactive as if they are not there.
This is needed because compiler flag can be used to feature gate conflicting code.
This simply means that anything that is only used by code marked with a certain compiler flag should also be marked with the same flag.
Problem
The feature soundness lints are useful but clippy is not very helpful when determining the correct visibilities and features. At least sometimes I don't understand immediately why clippy is allowing some things but not others. Take for example this clippy run. It complains about a function that is apparently never used, but it is used, just in a module that happens to have a
cfg(any(feature = "csr", feature = "ssr"))
annotation somewhere further up in the module hierarchy. It's a pain to figure that out, since the tooling doesn't help much in reasoning why the function is unused.Expected behavior
A clear module tree and feature dependencies. When searching
cfg(feature
, I get 168 results across the code base. That's too many to reasonably figure out which impact what part.Questionnaire
The text was updated successfully, but these errors were encountered: