about summary refs log tree commit diff
path: root/tests/coverage/branch_if.rs
diff options
context:
space:
mode:
authorMichael Baikov <manpacket@gmail.com>2024-04-16 10:25:17 -0400
committerMichael Baikov <manpacket@gmail.com>2024-04-16 11:19:35 -0400
commita03aeca99a1679e27d7439e6030fe759eb1f6f04 (patch)
treede80f2a96eb4c036520d9a95cf8600e02d91b167 /tests/coverage/branch_if.rs
parent4e1f5d90bca45207605a88e39b1f76abcdb85d2f (diff)
downloadrust-a03aeca99a1679e27d7439e6030fe759eb1f6f04.tar.gz
rust-a03aeca99a1679e27d7439e6030fe759eb1f6f04.zip
Allow workproducts without object files.
This pull request partially reverts changes from e16c3b4a4421

Original motivation for this assert was described with "A WorkProduct without a saved file is useless"
which was true at the time but now it is possible to have work products with other types of files
(llvm-ir, asm, etc) and there are bugreports for this failure:

For example: https://github.com/rust-lang/rust/issues/123695

Fixes https://github.com/rust-lang/rust/issues/123234

Now existing `assert` and `.unwrap_or_else` are unified into a single
check that emits slightly more user friendly error message if an object
files was meant to be produced but it's missing
Diffstat (limited to 'tests/coverage/branch_if.rs')
0 files changed, 0 insertions, 0 deletions