Skip to content

Commit

Permalink
Rollup merge of rust-lang#71959 - petrochenkov:chelpers, r=Mark-Simul…
Browse files Browse the repository at this point in the history
…acrum

tests: Fix warnings in `rust_test_helpers.c`

MSVC is silly and doesn't recognize `assert` as diverging.
  • Loading branch information
Dylan-DPC authored May 7, 2020
2 parents 2c49d0a + 8e76663 commit 88e141e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/auxiliary/rust_test_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ rust_dbg_unpack_option_u64(struct U8TaggedEnumOptionU64 o, uint64_t *into) {
return 0;
default:
assert(0 && "unexpected tag");
return 0;
}
}

Expand Down Expand Up @@ -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;
}
}

0 comments on commit 88e141e

Please sign in to comment.