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
needless_else: new lint to check for empty `else` clauses
Empty `else` clauses are useless. They happen in the wild and are not linted yet: https://github.com/uutils/coreutils/pull/4880/files
`else` clauses containing or preceded by comments are not linted as the comments might be important.
changelog: [`needless_else`]: new lint
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jun 2, 2023
Ignore `#[cfg]`'d out code in `needless_else`
changelog: none (same release as rust-lang#10810)
`#[cfg]` making things fun once more
This lead me to think about macro calls that expand to nothing as well, but apparently they produce an empty stmt in the AST so are already handled, added a test for that
r? `@llogiq`
The following code makes rustdoc show the module to the outside world when the module should be private.
The text was updated successfully, but these errors were encountered: