diff options
| author | bors <bors@rust-lang.org> | 2024-01-10 08:09:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-10 08:09:38 +0000 |
| commit | 5871b61c0d780a29992cc9c6fe864cf5d8ad87e3 (patch) | |
| tree | eadefb436dc1f864427afbb76963a579503829e5 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | f31b1fc617162811d61e886692f366aa8a21f51a (diff) | |
| parent | d327f3036c2db0cffb91807c301d48f8e37165e2 (diff) | |
| download | rust-5871b61c0d780a29992cc9c6fe864cf5d8ad87e3.tar.gz rust-5871b61c0d780a29992cc9c6fe864cf5d8ad87e3.zip | |
Auto merge of #16333 - roife:fix/issue-14371, r=Veykril
Preserve comments for extracted block expression in 'extract_function' Fix #14371 Preserve comments for extracted block expression in 'extract_function'. In the original implementation, `block.statements()` was used to construct a new function, removing the comments within the block. In the updated implementation, we use manual traversal of nodes and `hacky_block_expr` to generate a new block, thereby preserving the comments.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
