diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-01 10:25:55 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-03 09:06:26 +1000 |
| commit | 3b6978196da24dd249230532153adc0e662678ac (patch) | |
| tree | 2a7ff8ad25c66560bcef29eeda96424d9af29a73 /compiler/rustc_codegen_cranelift/example/std_example.rs | |
| parent | 79c4d0202f0c5c44520a424cae34af5e2d30a2cc (diff) | |
| download | rust-3b6978196da24dd249230532153adc0e662678ac.tar.gz rust-3b6978196da24dd249230532153adc0e662678ac.zip | |
Tweak `fully_expand_fragment` loop.
Control flow never gets past the end of the `ExpandResult::Retry` match arm, due to the `span_bug` and the `continue`. Therefore, the code after the match can only be reached from the `ExpandResult::Ready` arm. This commit moves that code after the match into the `ExpandResult::Ready` arm, avoiding the need for the `continue` in the `ExpandResult::Retry` arm.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
