about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-03 20:45:02 +0100
committerGitHub <noreply@github.com>2023-03-03 20:45:02 +0100
commitefc79bc65450f284251d7f3c3ace78b029bc8d59 (patch)
tree226ee6e20085d9729173075c0571a7661caf9ec1 /compiler/rustc_mir_transform/src/coverage/tests.rs
parentdadfbb6a4b269e324b3c63cd0420d9e1b13370e0 (diff)
parent03334503b31bd9ab52d4c24b92ad2227a153bcb5 (diff)
downloadrust-efc79bc65450f284251d7f3c3ace78b029bc8d59.tar.gz
rust-efc79bc65450f284251d7f3c3ace78b029bc8d59.zip
Rollup merge of #108678 - llogiq:use-option-as-slice, r=Nilstrieb
Use `Option::as_slice` where applicable

After #105871 introduced `Option::as_slice`, this PR uses it within the compiler. I found it interesting that all cases where `as_slice` could be used were done with different code before; so it seems the new API also has the benefit of being "the obvious solution" where before there was a mix of options, none clearly better than the rest.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions