diff options
| author | bors <bors@rust-lang.org> | 2024-08-01 14:16:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-01 14:16:08 +0000 |
| commit | 61ebcf631b3c3267f6166fc97917da7c30d4d846 (patch) | |
| tree | 2f11a7718a53f2b9b6b6c9ed5ff17dac4a01effe /tests/debuginfo/enum-thinlto.rs | |
| parent | 9ec4844925a37aae5665491b43ca526d47501d48 (diff) | |
| parent | 44f5392f5a7f6ab4a6e8c42a436ef7cda54929d0 (diff) | |
| download | rust-61ebcf631b3c3267f6166fc97917da7c30d4d846.tar.gz rust-61ebcf631b3c3267f6166fc97917da7c30d4d846.zip | |
Auto merge of #17763 - ShoyuVanilla:wrap-unit, r=Veykril
fix: Insert a tail `Ok(())` for expr block instead of wrapping with `Ok` Fixes #17728 When type mismatch is `Result<(), E>, ()` or `Option<()>, ()` and target expr is a block expression, it is more reasonable to insert a wrapped unit - `Ok(())` or `Some(())` - as the tail expression of that block than wrapping the entire block with `Ok` or `Some`
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
