about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-11-24 13:17:35 +0100
committerGitHub <noreply@github.com>2020-11-24 13:17:35 +0100
commitf74b223e195082af56fca1c886d08ccf3377db33 (patch)
tree3ad61e4a7d73ec7d5f2c672981f2b6e5799b23fa /compiler/rustc_mir/src/transform/coverage/debug.rs
parent8fde4be7d042a348387a82832a44076cfbf334ca (diff)
parentab1e6342956620901723106761eacb0113e1583b (diff)
downloadrust-f74b223e195082af56fca1c886d08ccf3377db33.tar.gz
rust-f74b223e195082af56fca1c886d08ccf3377db33.zip
Rollup merge of #79310 - jyn514:fold-item-cleanup, r=GuillaumeGomez
Make `fold_item_recur` non-nullable

This gets rid of a bunch of `unwrap()`s and makes it a little more clear
what's going on.

Originally I wanted to make `fold_item` non-nullable too, which would
have been a lot nicer to work with, but unfortunately `stripper` does
actually return `None` in some places. I might make a follow-up moving
stripper to be special and not a pass so that passes can be
non-nullable.

Found while working on https://github.com/rust-lang/rust/issues/76998.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions