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

Provide a sound method of flushing stdout #10218

Merged
merged 1 commit into from
Nov 1, 2013

Conversation

alexcrichton
Copy link
Member

The previous method was unsound because you could very easily create two mutable
pointers which alias the same location (not sound behavior). This hides the
function which does so and then exports an explicit flush() function (with
documentation about how it works).

The previous method was unsound because you could very easily create two mutable
pointers which alias the same location (not sound behavior). This hides the
function which does so and then exports an explicit flush() function (with
documentation about how it works).
bors added a commit that referenced this pull request Nov 1, 2013
The previous method was unsound because you could very easily create two mutable
pointers which alias the same location (not sound behavior). This hides the
function which does so and then exports an explicit flush() function (with
documentation about how it works).
@bors bors closed this Nov 1, 2013
@bors bors merged commit 8f258ab into rust-lang:master Nov 1, 2013
@alexcrichton alexcrichton deleted the stdio-flush-safe branch November 1, 2013 18:14
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 27, 2023
…estion, r=dswij

Add machine applicable suggestion for `bool_assert_comparison`

Fixes rust-lang#7598
Also closes rust-lang#8118, it had already been fixed by an earlier change but I've added a test for it

changelog: [`bool_assert_comparison`] The suggestion is now machine applicable
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 10, 2023
…tion, r=dswij

Negate suggestions when needed in `bool_assert_comparison`

changelog: none assuming this gets into the same release as rust-lang#10218

Fixes rust-lang#10291

r? `@dswij`

Thanks to `@black-puppydog` for spotting it early
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants