about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-16 17:35:49 +0000
committerbors <bors@rust-lang.org>2024-03-16 17:35:49 +0000
commit5ecace48f693afaa6adf8cb23086b651db3aec96 (patch)
tree83e978bcb8702bc2364715adc4bf0f306c0dbdfd /compiler/rustc_const_eval/src/errors.rs
parentb94c2852fa6b3c2502dddbe559c6c9b3b7e6e486 (diff)
parent10aa999c743038f26c14939749c72e73e22f7e49 (diff)
downloadrust-5ecace48f693afaa6adf8cb23086b651db3aec96.tar.gz
rust-5ecace48f693afaa6adf8cb23086b651db3aec96.zip
Auto merge of #16846 - roife:fix-issue16826, r=Veykril
fix: incorrect handling of `use` and panic issue in `extract_module`.

fix #16826

This PR includes the following changes:

1. Simplify the implementation partially, removing many unnecessary loops and `clone()`.

2. When it is found that the top level of the selection contains a `use` statement, a copy of the `use` will be reinserted before extraction. (#16826)

3. Fixed an issue during `extract_module`, where if the top level of the selected part contains `A` and `use A::B`, it caused a duplication of `use A`.
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
0 files changed, 0 insertions, 0 deletions