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

Have std::io::TempDir::new and new_in return IoResult #16907

Closed
wants to merge 1 commit into from

Conversation

SimonSapin
Copy link
Contributor

This allows using try!()

[breaking-change]

Fixes #16875

This allows using `try!()`

[breaking-change]

Fixes rust-lang#16875
bors added a commit that referenced this pull request Sep 6, 2014
This allows using `try!()`

[breaking-change]

Fixes #16875
@bors bors closed this Sep 6, 2014
@SimonSapin SimonSapin deleted the tempdir-result branch September 20, 2014 19:25
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 31, 2024
Handle panicking like rustc CTFE does

Instead of using `core::fmt::format` to format panic messages, which may in turn panic too and cause recursive panics and other messy things, redirect `panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to `panic_display` and does the things normally. See the tests for the full call stack.

The tests don't work yet, I probably missed something in minicore.

fixes rust-lang#16907 in my local testing, I also need to add a test for it
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.

std::io::TempDir::new and new_in should return IoResult
4 participants