Skip to content

Commit e62365c

Browse files
authored
Rollup merge of rust-lang#71959 - petrochenkov:chelpers, r=Mark-Simulacrum
tests: Fix warnings in `rust_test_helpers.c` MSVC is silly and doesn't recognize `assert` as diverging.
2 parents 1a2e46e + 8e76663 commit e62365c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/auxiliary/rust_test_helpers.c

+2
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ rust_dbg_unpack_option_u64(struct U8TaggedEnumOptionU64 o, uint64_t *into) {
368368
return 0;
369369
default:
370370
assert(0 && "unexpected tag");
371+
return 0;
371372
}
372373
}
373374

@@ -411,5 +412,6 @@ rust_dbg_unpack_option_u64u64(struct U8TaggedEnumOptionU64U64 o, uint64_t *a, ui
411412
return 0;
412413
default:
413414
assert(0 && "unexpected tag");
415+
return 0;
414416
}
415417
}

0 commit comments

Comments
 (0)