diff options
| author | Josh Stone <jistone@redhat.com> | 2022-10-17 11:21:50 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-10-17 11:21:50 -0700 |
| commit | d7fd1d57ec90d43aee3caee75a9663914ccc1400 (patch) | |
| tree | b6aa0e83b90bf06b95a6aa39c3c8cd3ac038d4f3 /compiler/rustc_errors/src/snippet.rs | |
| parent | a9d1cafa878ecc04a4aa7aaa7df0414a29a2bd0b (diff) | |
| download | rust-d7fd1d57ec90d43aee3caee75a9663914ccc1400.tar.gz rust-d7fd1d57ec90d43aee3caee75a9663914ccc1400.zip | |
Remove the redundant `Some(try_opt!(..))` in `checked_pow`
The final return value doesn't need to be tried at all -- we can just return the checked option directly. The optimizer can probably figure this out anyway, but there's no need to make it work here.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
