rust/tests/ui/contracts
Celina G. Val 3feac59b79 Fix unreachable expression warning
Invert the order that we pass the arguments to the
`contract_check_ensures` function to avoid the warning when the tail
of the function is unreachable.

Note that the call itself is also unreachable, but we have already
handled that case by ignoring unreachable call for contract calls.
2025-04-08 10:46:31 -07:00
..
internal_machinery Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
associated-item.rs Don't ICE when failing to lower contracts for associated impl items 2025-02-10 21:38:31 +00:00
associated-item.stderr Don't ICE when failing to lower contracts for associated impl items 2025-02-10 21:38:31 +00:00
contract-annotation-limitations.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-annotation-limitations.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.chk_const_fail.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.chk_fail_post.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.chk_fail_pre.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.chk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-generics.unchk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-nest.chk_fail_post.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-nest.chk_fail_pre.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-nest.chk_pass.stderr Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-attributes-nest.rs Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-attributes-nest.unchk_fail_post.stderr Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-attributes-nest.unchk_fail_pre.stderr Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-attributes-nest.unchk_pass.stderr Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-attributes-tail.chk_fail_post.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.chk_fail_pre.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.chk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.unchk_fail_post.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.unchk_fail_pre.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-attributes-tail.unchk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-captures-via-closure-copy.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-captures-via-closure-copy.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-captures-via-closure-noncopy.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contract-captures-via-closure-noncopy.stderr Fix unreachable expression warning 2025-04-08 10:46:31 -07:00
contract-const-fn.all_pass.stderr Enable contracts for const functions 2025-04-07 11:17:33 -07:00
contract-const-fn.rs Enable contracts for const functions 2025-04-07 11:17:33 -07:00
contract-const-fn.runtime_fail_post.stderr Enable contracts for const functions 2025-04-07 11:17:33 -07:00
contract-const-fn.runtime_fail_pre.stderr Enable contracts for const functions 2025-04-07 11:17:33 -07:00
contracts-ensures-early-fn-exit.chk_fail_ret.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-early-fn-exit.chk_fail_try.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-early-fn-exit.chk_fail_yeet.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-early-fn-exit.chk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-early-fn-exit.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-early-fn-exit.unchk_pass.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-is-not-inherited-when-nesting.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-ensures-is-not-inherited-when-nesting.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-requires-is-not-inherited-when-nesting.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
contracts-requires-is-not-inherited-when-nesting.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
disallow-contract-annotation-on-non-fn.rs Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00
disallow-contract-annotation-on-non-fn.stderr Rename rustc_contract to contract 2025-02-03 13:55:15 -08:00