summary refs log tree commit diff
path: root/src/test/ui/conditional-compilation
AgeCommit message (Collapse)AuthorLines
2019-06-23Auto merge of #61778 - petrochenkov:pass, r=Mark-Simulacrumbors-4/+3
compiletest: Introduce `// {check,build,run}-pass` pass modes Pass UI tests now have three modes ``` // check-pass // build-pass // run-pass ``` mirroring equivalent well-known `cargo` commands. `// check-pass` will compile the test skipping codegen (which is expensive and isn't supposed to fail in most cases). `// build-pass` will compile and link the test without running it. `// run-pass` will compile, link and run the test. Tests without a "pass" annotation are still considered "fail" tests. Most UI tests would probably want to switch to `check-pass`. Tests validating codegen would probably want to run the generated code as well and use `run-pass`. `build-pass` should probably be rare (linking tests?). https://github.com/rust-lang/rust/pull/61755 will provide a way to run the tests with any mode, e.g. bump `check-pass` tests to `run-pass` to satisfy especially suspicious people, and be able to make sure that codegen doesn't breaks in some entirely unexpected way. Tests marked with any mode are expected to pass with any other mode, if that's not the case for some legitimate reason, then the test should be made a "fail" test rather than a "pass" test. Perhaps some secondary CI can verify this invariant, but that's not super urgent. `// compile-pass` still works and is equivalent to `build-pass`. Why is `// compile-pass` bad - 1) it gives an impression that the test is only compiled, but not linked, 2) it doesn't mirror a cargo command. It can be removed some time in the future in a separate PR. cc https://github.com/rust-lang/rust/issues/61712
2019-06-22Add test for linting on 'cfg_attr(,)'.Mazdak Farrokhzad-0/+34
2019-06-19Support `cfg` and `cfg_attr` on generic parametersVadim Petrochenkov-0/+104
2019-06-16compiletest: Remove `skip-codegen`Vadim Petrochenkov-4/+3
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-04-14fix testsRalf Jung-0/+12
2019-04-11Reword tracking issue noteEsteban Küber-4/+4
2019-04-10Tweak unstable diagnostic outputEsteban Küber-4/+8
2019-03-11Update testsVadim Petrochenkov-24/+24
2019-03-06Surround found token with `Esteban Küber-2/+2
2019-03-05On incorrect cfg literal/identifier, point at the right spanEsteban Küber-2/+2
2019-01-13Implement basic input validation for built-in attributesVadim Petrochenkov-5/+6
2019-01-08bless youdylan_DPC-2/+2
2019-01-08remove unwanted stage0 line, fix styledylan_DPC-7/+5
2019-01-08remove unused imports and feature gate from testsdylan_DPC-7/+5
2019-01-08stabilise cfg_attrdylan_DPC-5/+3
2019-01-06Make sure feature gate errors are recoverable (take 2)Vadim Petrochenkov-8/+8
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-0/+4
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-114/+8
2018-11-07Removed `#[rustc_error]` from tests that are all `// compile-pass`.Felix S. Klock II-15/+4
I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-10-26Auto merge of #54929 - csmoe:cfg_lint, r=petrochenkovbors-9/+19
Suggest to remove prefix `b` in cfg attribute lint string Closes #54926 r? @estebank
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-10-23add expected error commentEsteban Kuber-1/+1
Co-Authored-By: csmoe <csmoe@msn.com>
2018-10-23add expected error commentEsteban Kuber-1/+1
Co-Authored-By: csmoe <csmoe@msn.com>
2018-10-22optimize unsupported literal diag messagecsmoe-8/+14
2018-10-20update meta item checking testcsmoe-7/+11
2018-10-14Unused result warning: "X which must" ↦ "X that must"varkor-2/+2
2018-10-07cfg_attr_multi: Feature gateHavvy (Ryan Scheel)-7/+11
2018-10-05cfg_attr_multi: Basic implementationHavvy (Ryan Scheel)-1/+208
Does not implement the warning or a feature flag.
2018-10-05Move conditional configuration related UI tests into their own directoryHavvy (Ryan Scheel)-0/+349