-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Result::{unwrap, unwrap_err} require Show
`foo.ok().unwrap()` and `foo.err().unwrap()` are the fallbacks for types that aren't `Show`. Closes #13379
- Loading branch information
Showing
4 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eb0473d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from cmr
at sfackler@eb0473d
eb0473d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging sfackler/rust/result-unwrap = eb0473d into auto
eb0473d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sfackler/rust/result-unwrap = eb0473d merged ok, testing candidate = 40a9797
eb0473d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5229
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5226
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4319
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4332
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5328
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4415
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4423
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5330
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4415
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4420
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/4485
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2215
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5326
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4422
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4435
eb0473d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 40a9797