Skip to content

Fix a bug in Result::unwrap_err (and minor cleanup) #4243

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

Merged
merged 2 commits into from
Dec 23, 2012

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Dec 21, 2012

I made the mistake of writing the method Result::unwrap as fn unwrap_err(&self) -> T { unwrap(self) }. This patch fixes that bug, and also does some cleanup of time.rs.

catamorphism added a commit that referenced this pull request Dec 23, 2012
Fix a bug in Result::unwrap_err (and minor cleanup)
@catamorphism catamorphism merged commit 197a1f9 into rust-lang:incoming Dec 23, 2012
@catamorphism
Copy link
Contributor

Thanks!

RalfJung added a commit to RalfJung/rust that referenced this pull request Apr 9, 2025
do not run EnvVars::cleanup if there was an interpreter error
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.

2 participants