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:
Dylan DPC 2020-05-07 17:58:55 +02:00 committed by GitHub
commit 9e4a745b8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}