about summary refs log tree commit diff
path: root/tests/ui/inline-const
AgeCommit message (Collapse)AuthorLines
2023-11-24Show number in error message even for one errorNilstrieb-8/+8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-10-25Make THIR unused_unsafe lint consistent with MIRMatthew Jasper-9/+0
Updates THIR behavior to match the changes from #93678
2023-10-16Fix inline const pattern unsafety checking in THIRMatthew Jasper-4/+70
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-09-21Prevent promotion of const fn calls in inline constsOli Scherer-1/+16
2023-09-21Add regression testOli Scherer-0/+21
2023-08-18Add a test to check that inline const is in required_constsGary Guo-0/+24
Suggested in https://github.com/rust-lang/rust/issues/76001#issuecomment-1315975027
2023-08-15Deny FnDef in patternsMichael Goulet-0/+30
2023-08-09Don't use type_of to determine if item has intrinsic shimMichael Goulet-0/+10
2023-07-19Fix inline_const with interpolated blockMichael Goulet-0/+32
2023-06-01add inline-const test for elided lifetimes being infer varsZiru Niu-0/+11
2023-04-15Add some reasons why tests are ignored.Eric Huss-1/+1
2023-04-03Perform match checking on THIR.Camille GILLOT-16/+2
2023-01-15Tweak E0597Esteban Küber-0/+1
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+585