Commit 0267c0e
committed
Auto merge of #108671 - Coca162:option_reference_flattening, r=dtolnay
Implement flatten for `Option<&Option<T>>` and `Option<&mut Option<T>>`
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: rust-lang/rust#1492210 file changed
0 commit comments