diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-05 06:37:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 06:37:15 +0100 |
| commit | 7294c15f41e782e9d923489a9179c23d8c42b250 (patch) | |
| tree | 2ca7f6a726fd8599b4f57ef58252c539d3d200cc /compiler/rustc_pattern_analysis/src | |
| parent | 9838e943f378627c29167f0f6db716aafb616f66 (diff) | |
| parent | a246b6be1dcd4a8ea0ac468921af7e8022686849 (diff) | |
| download | rust-7294c15f41e782e9d923489a9179c23d8c42b250.tar.gz rust-7294c15f41e782e9d923489a9179c23d8c42b250.zip | |
Rollup merge of #120569 - Zalathar:fn-sig, r=oli-obk
coverage: Improve handling of function/closure spans This is a combination of some loosely-related changes that touch the same code: 1. Make unexpansion of closure bodies more precise, by unexpanding back to the context of the closure declaration, instead of unexpanding all the way back to the top-level context. This preserves the way we handle async desugaring and closures containing a single bang-macro, while also giving better results for closures defined in macros. 2. Skip the normal span-refinement code when dealing with the trivial outer part of an async function. 3. Be more explicit about the fact that `fn_sig_span` has been extended to the start of the function body, and is not necessarily present. --- `@rustbot` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
