Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ticki opened this issue Feb 26, 2016 · 2 comments
Closed
Labels
A-lint Area: New lints

Comments

@ticki
Copy link

ticki commented Feb 26, 2016

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.

@finnbear
Copy link

finnbear commented Oct 9, 2023

@y21
Copy link
Member

y21 commented Oct 14, 2024

Closing since nowadays exit() ends up calling io::cleanup() which flushes stdout, so this is no longer needed as a lint

@y21 y21 closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

No branches or pull requests

4 participants