Skip to content

lint assert!(true / false) #3575

Closed
Closed
@matthiaskrgr

Description

@matthiaskrgr

assert!(true); will be optimized out by the compiler
assert!(false); should probably be replaced by a panic!().

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesL-suggestionLint: Improving, adding or fixing lint suggestionsgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions