diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2025-08-31 14:39:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-31 14:39:08 +0000 |
| commit | 3f74c96c09ae68fe0f85b0facaad2d04b5218410 (patch) | |
| tree | ceae48e42531ad2879e028599b69b73139068e99 /compiler/rustc_mir_transform/src/coverage/tests.rs | |
| parent | 034136ddfaee774cecb6c36c0f33f499bf7bd149 (diff) | |
| parent | bd33a02ea6c01a7053451b0205edb01e4172a601 (diff) | |
| download | rust-3f74c96c09ae68fe0f85b0facaad2d04b5218410.tar.gz rust-3f74c96c09ae68fe0f85b0facaad2d04b5218410.zip | |
Get the block content from the proper context (#15014)
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. changelog: [`if_then_some_else_none`]: emit well-formed suggestion, and do not lint inside macros Fixes rust-lang/rust-clippy#15005
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions
