Implement flatten for Option<&Option<T>> and Option<&mut Option<T>>#108671
Implement flatten for Option<&Option<T>> and Option<&mut Option<T>>#108671bors merged 1 commit intorust-lang:mainfrom
Option<&Option<T>> and Option<&mut Option<T>>#108671Conversation
|
r? @cuviper (rustbot has picked a reviewer for you, use r? to override) |
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
Please do create an API Change Proposal as linked above. @rustbot label +T-libs-api -T-libs |
This comment has been minimized.
This comment has been minimized.
|
r? libs-api |
|
☔ The latest upstream changes (presumably #130829) made this pull request unmergeable. Please resolve the merge conflicts. |
4dcfc5d to
0e54845
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
|
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 7fefa09 (parent) -> 123588a (this PR) Test differencesShow 14 test diffs14 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 123588a5bf9250f214e1931a761f814660e69620 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (123588a): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary 0.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 490.488s -> 483.839s (-1.36%) |
Adds
.flatten_ref()to get a immutable reference of a nested option and.flatten_mut()for mutable references.ACP: rust-lang/libs-team#186
Tracking Issue: #149221