about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-10-18 21:21:31 +0900
committerGitHub <noreply@github.com>2022-10-18 21:21:31 +0900
commite04bbcb9b1e8f13c09252c7a43011a6b0c9b8dba (patch)
tree2de5aaa6755e7c08b1c02928ea717710189a03e3 /compiler/rustc_errors/src/snippet.rs
parentba643786b8799242184682b4caa7911756fe4046 (diff)
parentd7fd1d57ec90d43aee3caee75a9663914ccc1400 (diff)
downloadrust-e04bbcb9b1e8f13c09252c7a43011a6b0c9b8dba.tar.gz
rust-e04bbcb9b1e8f13c09252c7a43011a6b0c9b8dba.zip
Rollup merge of #103159 - cuviper:check_pow-final-try_opt, r=Mark-Simulacrum
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