Rollup merge of #71959 - petrochenkov:chelpers, r=Mark-Simulacrum
tests: Fix warnings in `rust_test_helpers.c` MSVC is silly and doesn't recognize `assert` as diverging.
This commit is contained in:
commit
9e4a745b8d
1 changed files with 2 additions and 0 deletions
|
|
@ -368,6 +368,7 @@ rust_dbg_unpack_option_u64(struct U8TaggedEnumOptionU64 o, uint64_t *into) {
|
|||
return 0;
|
||||
default:
|
||||
assert(0 && "unexpected tag");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -411,5 +412,6 @@ rust_dbg_unpack_option_u64u64(struct U8TaggedEnumOptionU64U64 o, uint64_t *a, ui
|
|||
return 0;
|
||||
default:
|
||||
assert(0 && "unexpected tag");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue