about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-07-19 09:49:13 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-07-19 09:51:35 +0000
commitf8f5d7aab28b9c310b4312b5d38c80fe4dc6df02 (patch)
treeae3adba66054e995b16877672058d762a6c8b063 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent348f26e40957c2a2469f0ea2b41c403803de8075 (diff)
downloadrust-f8f5d7aab28b9c310b4312b5d38c80fe4dc6df02.tar.gz
rust-f8f5d7aab28b9c310b4312b5d38c80fe4dc6df02.zip
Replace `if let` with `unwrap` in `prepare_vtable_segments`
Reasoning: if the stack is empty, the loop will be infinite,
so the assumption is that the stack can't be non empty. Unwrap
makes the assumption more clear (and removes an indentation level)
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions