rust/tests/ui/inline-const
Matthew Jasper 5cc83fd4a5 Fix inline const pattern unsafety checking in THIR
THIR unsafety checking was getting a cycle of
function unsafety checking
-> building THIR for the function
-> evaluating pattern inline constants in the function
-> building MIR for the inline constant
-> checking unsafety of functions (so that THIR can be stolen)
This is fixed by not stealing THIR when generating MIR but instead when
unsafety checking.
This leaves an issue with pattern inline constants not being unsafety
checked because they are evaluated away when generating THIR.
To fix that we now represent inline constants in THIR patterns and
visit them in THIR unsafety checking.
2023-10-16 15:57:59 +00:00
..
const-expr-array-init.rs
const-expr-basic.rs
const-expr-generic-err2.rs
const-expr-generic-err2.stderr
const-expr-generic-err.rs
const-expr-generic-err.stderr
const-expr-generic.rs
const-expr-inference.rs
const-expr-lifetime-err.rs
const-expr-lifetime-err.stderr
const-expr-lifetime.rs
const-expr-macro.rs
const-expr-reference.rs
const-match-pat-generic.rs
const-match-pat-generic.stderr
const-match-pat-inference.rs
const-match-pat-lifetime-err.rs
const-match-pat-lifetime.rs
const-match-pat-range.rs
const-match-pat.rs
elided-lifetime-being-infer-vars.rs
expr-unsafe-err.mir.stderr
expr-unsafe-err.rs
expr-unsafe-err.thir.stderr
expr-unsafe.mir.stderr
expr-unsafe.rs
expr-unsafe.thir.stderr
expr-with-block-err.rs
expr-with-block-err.stderr
expr-with-block.rs
instance-doesnt-depend-on-type.rs
interpolated.rs
macro-with-const.rs
pat-match-fndef.rs
pat-match-fndef.stderr
pat-unsafe-err.rs Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
pat-unsafe-err.thir.stderr Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
pat-unsafe.rs Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
pat-unsafe.thir.stderr Fix inline const pattern unsafety checking in THIR 2023-10-16 15:57:59 +00:00
promotion.rs
promotion.stderr
required-const.rs
required-const.stderr