diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 21:40:07 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-10 21:53:01 +0300 |
| commit | e94a4ee219e6c91d78bc3dd76298c5be6139a909 (patch) | |
| tree | 776a3f3164f7e0214bb1e282afebeeea02c9ae1c /compiler/rustc_interface/src | |
| parent | 3cc2a6fdcbbb3e6a80419521409665794522bb83 (diff) | |
| download | rust-e94a4ee219e6c91d78bc3dd76298c5be6139a909.tar.gz rust-e94a4ee219e6c91d78bc3dd76298c5be6139a909.zip | |
Refactor: `diagnostic_outside_of_impl`, `untranslatable_diagnostic`
1. Decouple them. 2. Make logic around `diagnostic_outside_of_impl`'s early exits simpler. 3. Make `untranslatable_diagnostic` run one loop instead of two and not allocate an intermediate vec. 4. Overall, reduce the amount of code executed when the lints do not end up firing.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
