about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-10-17 11:21:50 -0700
committerJosh Stone <jistone@redhat.com>2022-10-17 11:21:50 -0700
commitd7fd1d57ec90d43aee3caee75a9663914ccc1400 (patch)
treeb6aa0e83b90bf06b95a6aa39c3c8cd3ac038d4f3 /compiler/rustc_errors/src/snippet.rs
parenta9d1cafa878ecc04a4aa7aaa7df0414a29a2bd0b (diff)
downloadrust-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