about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-10 08:09:38 +0000
committerbors <bors@rust-lang.org>2024-01-10 08:09:38 +0000
commit5871b61c0d780a29992cc9c6fe864cf5d8ad87e3 (patch)
treeeadefb436dc1f864427afbb76963a579503829e5 /compiler/rustc_codegen_llvm/src/errors.rs
parentf31b1fc617162811d61e886692f366aa8a21f51a (diff)
parentd327f3036c2db0cffb91807c301d48f8e37165e2 (diff)
downloadrust-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