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
Extend `maybe_misused_cfg` lint over `cfg(test)`
Fixesrust-lang#11240.
One thought I had is that we could use the levenshtein distance (of 1) to ensure this is indeed `test` that was targeted. But maybe it's overkill, not sure.
changelog: [`maybe_misused_cfg`]: Extend lint over `cfg(test)`
r? `@blyxyas`
a.rs:
b.rs:
Then
liba-ca3f740d-0.0.so
andlibb-920859ee-0.0.rlib
are built successfully.The reversed case causes error as expected:
The text was updated successfully, but these errors were encountered: