Conversation
|
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
Please go over the RFC process before implementing a new library function. |
|
The RFC process is not generally necessary for adding unstable library features; approval from the libs team is sufficient. |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
src/libcore/option.rs
Outdated
There was a problem hiding this comment.
x.xor(y) should return Some(2) in this case.
|
Seems plausible for me. cc @rust-lang/libs @bors r+ |
|
📌 Commit 8ab2d15 has been approved by |
|
@bors rollup |
Add Option::xor method Implements the method requested in rust-lang#50512.
Rollup of 10 pull requests Successful merges: - #50387 (Remove leftover tab in libtest outputs) - #50553 (Add Option::xor method) - #50610 (Improve format string errors) - #50649 (Tweak `nearest_common_ancestor()`.) - #50790 (Fix grammar documentation wrt Unicode identifiers) - #50791 (Fix null exclusions in grammar docs) - #50806 (Add `bless` x.py subcommand for easy ui test replacement) - #50818 (Speed up `opt_normalize_projection_type`) - #50837 (Revert #49767) - #50839 (Make sure people know the book is free oline) Failed merges:
Implements the method requested in #50512.