about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-06-07 08:25:20 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-07-25 22:48:54 +0200
commitbd33a02ea6c01a7053451b0205edb01e4172a601 (patch)
tree3de85c33ce12757420254373d2ec3948991911b8 /compiler/rustc_mir_transform/src/coverage/tests.rs
parent1db89a1b1ca87f24bf22d0bad21d14b2d81b3e99 (diff)
downloadrust-bd33a02ea6c01a7053451b0205edb01e4172a601.tar.gz
rust-bd33a02ea6c01a7053451b0205edb01e4172a601.zip
Get the block content from the proper context
The first statement of the block might have been in a different context
from the expression. Walk up to the right context to get bounds
properly.

Also, switch to `snippet_with_applicability()` since we know that we are
in the right context already.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions