about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/std_example.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-01 10:25:55 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-05-03 09:06:26 +1000
commit3b6978196da24dd249230532153adc0e662678ac (patch)
tree2a7ff8ad25c66560bcef29eeda96424d9af29a73 /compiler/rustc_codegen_cranelift/example/std_example.rs
parent79c4d0202f0c5c44520a424cae34af5e2d30a2cc (diff)
downloadrust-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