Skip to content

Warn when forgetting to flush stdout before calling std::process::exit. #713

Closed
@ticki

Description

@ticki

std::process::exit does not call destructors, thus the buffered standard output should be flushed before calling exit to avoid silencing standard output. A lint ensuring that can potentially create false positives, thus I propose adding it to clippy-pedantic group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions