about summary refs log tree commit diff
path: root/src/test/ui/statics
AgeCommit message (Collapse)AuthorLines
2021-11-20Move the issue-91050 tests to appease tidyJosh Stone-0/+58
2021-11-09Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995bors-2/+48
Don't abort compilation after giving a lint error The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors. Closes https://github.com/rust-lang/rust/issues/82761. This is a WIP because I have a feeling it will exit with 0 even if there were lint errors; I don't have a computer that can build rustc locally at the moment.
2021-11-08Don't abort compilation after giving a lint errorJoshua Nelson-2/+48
The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors.
2021-11-06Move some tests to more reasonable directoriesCaio-0/+32
2021-03-06Move some tests to more suitable subdirsYuki Okushi-0/+40
2020-10-25also test non-extern uninhabited staticsRalf Jung-1/+26
2020-10-24ensure that statics are inhabitedRalf Jung-0/+39
2020-09-19cleanup promotion const_kind checksRalf Jung-1/+1
in particular allow a few more promotions for consistency when they were already allowed in other contexts
2020-07-31Add the proper testsDing Xiang Fei-1/+12
2020-07-31Add comments to explain the test case and the special treatmentDing Xiang Fei-1/+9
2020-07-30Special treatment for dereferencing a borrow to a static definitionDing Xiang Fei-0/+15
2019-08-15Group all ui tests and move to abi #62593Kevin Per-41/+0
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+385