mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
5cc83fd4a5
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. |
||
---|---|---|
.. | ||
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 | ||
pat-unsafe-err.thir.stderr | ||
pat-unsafe.rs | ||
pat-unsafe.thir.stderr | ||
promotion.rs | ||
promotion.stderr | ||
required-const.rs | ||
required-const.stderr |