about summary refs log tree commit diff
path: root/src/test/ui/consts/control-flow/assert.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-8/+0
2021-10-04Stabilize `const_panic`Jacob Pratt-8/+2
2021-06-15Use better error message for hard errors in CTFESmitty-1/+1
Currently the same message is used for hard errors and soft errors. This makes hard errors use a message that indicates the reality of the situation correctly, since usage of the constant is never allowed when there was a hard error evaluating it.
2021-05-30Emit a hard error when a panic occurs during const-evalAaron Hill-1/+0
Previous, a panic during const evaluation would go through the `const_err` lint. This PR ensures that such a panic always causes compilation to fail.
2021-02-03make const_err a future incompat lintRalf Jung-0/+1
2020-11-09Add `#[cfg(panic = "...")]`David Hewitt-3/+3
2020-06-28Update testsDylan MacKenzie-9/+6
2019-11-21Reorganize, bless and add tests for const control flowDylan MacKenzie-0/+17
This creates a new test directory, `ui/consts/control-flow` to hold tests related to control flow in a const context. It also blesses all existing tests with the new error messages, and adds new tests for the `const_if_match` feature.