-
Notifications
You must be signed in to change notification settings - Fork 13.3k
use ? to simplify TransitiveRelation.maybe_map
#53271
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -59,6 +59,7 @@ impl<T: Clone + Debug + Eq + Hash> TransitiveRelation<T> { | |||
edges: vec![], | |||
closure: Lock::new(None), | |||
} | |||
|
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.
Oops, I added this by mistake.
a09846d
to
2fac7df
Compare
@llogiq Please don't backmerge master into your feature branch. If you need to update your feature branch, please rebase it instead. |
For some reason, when I try to review lines of your commit, I get this:
In any case: please drop the change to Apart from that, this looks great. |
a496942
to
05ddad3
Compare
This is what happens when one uses the UI (I was on mobile earlier). The history should now be fixed. |
@bors r+ |
📌 Commit 05ddad3 has been approved by |
@bors rollup |
…iplett use ? to simplify `TransitiveRelation.maybe_map` I think this looks much clearer than the original.
Rollup of 8 pull requests Successful merges: - #52453 (improve diagnostics for tests with custom return values) - #53271 (use ? to simplify `TransitiveRelation.maybe_map`) - #53279 (Extend documentation of `rustc_on_unimplemented`) - #53342 (fix error for unsized packed struct field) - #53344 (Add doc examples for std::alloc::{alloc,alloc_zeroed}.) - #53368 (Ignore test that fails on stage1) - #53388 (Fix links' color) - #53396 (Fix since of Iterator::flatten to be a proper semver) Failed merges: r? @ghost
I think this looks much clearer than the original.