]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: migration: hide more warnings from call_func_with_field!
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Oct 2025 14:01:55 +0000 (16:01 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Oct 2025 23:44:43 +0000 (01:44 +0200)
commitceda1563d6d347647419f61508856e5236069e02
treea89c4ab32729d3784d7b038f01e63314e68e9113
parent194dfadd6625504438107e3e740cd9dde158b335
rust: migration: hide more warnings from call_func_with_field!

The call_func_with_field! macro uses dead code willingly to infer
the appropriate type.  This has started adding a new warning:

error: unused variable: `value__`
 79 |             break phantom__(&{ let value__: $typ; value__.$($field).+ })

So shut it up together with the existing unreachable_code warning.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/migration/src/vmstate.rs