summary refs log tree commit diff
path: root/src/test/ui/coherence
AgeCommit message (Collapse)AuthorLines
2019-06-23Auto merge of #61778 - petrochenkov:pass, r=Mark-Simulacrumbors-22/+10
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-16compiletest: Remove `skip-codegen`Vadim Petrochenkov-22/+10
2019-06-14Add explanation for E0592Yuki Okushi-0/+6
2019-05-29Update ui test suite to use dynmemoryruins-19/+19
2019-04-22Remove leading newlinesvarkor-2/+1
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-18/+12
2019-03-11Update testsVadim Petrochenkov-10/+10
2019-02-21update test files to reflect new outputNiko Matsakis-30/+4
One surprise: old-lub-glb-object.rs, may indicate a bug
2019-01-15fix test output changing in rebaseAriel Ben-Yehuda-2/+2
2019-01-13forbid manually impl'ing one of an object type's marker traitsAriel Ben-Yehuda-0/+132
This shouldn't break compatibility for crates that do not use `feature(optin_builtin_traits)`, because as the test shows, it is only possible to impl a marker trait for a trait object in the crate the marker trait is defined in, which must define `feature(optin_builtin_traits)`. Fixes #56934
2019-01-08Improve the wordingYuki Okushi-39/+39
2019-01-04Update tests changed by rebaseGeorg Semmler-4/+39
2019-01-03Add missing filesGeorg Semmler-127/+1008
2019-01-03Unify testsGeorg Semmler-107/+400
Implement compile tests as variants of existing tests
2019-01-02rename `type_moves_by_default` to `type_is_copy_modulo_regions`Niko Matsakis-1/+1
2019-01-02try to detect affected code and direct people to #56105Niko Matsakis-0/+2
2019-01-02address tmandry nitsNiko Matsakis-53/+9
2019-01-02WIP other test changesNiko Matsakis-3/+3
2019-01-02tests: move coherence-subtyping from run-pass to compile-failNiko Matsakis-0/+71
This is the pattern we no longer accept.
2018-12-25Remove licensesMark Rousskov-672/+82
2018-12-15stop treating trait objects from #[fundamental] traits as fundamentalAriel Ben-Yehuda-0/+34
Fixes #56503.
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-11/+11
2018-11-08Rollup merge of #55736 - estebank:elide-anon-lt, r=petrochenkovMark Rousskov-2/+2
Elide anon lifetimes in conflicting impl note Fix #54690.
2018-11-07Removed `#[rustc_error]` from tests that are all `// compile-pass`.Felix S. Klock II-72/+24
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-11-07remove `#[rustc_error]` from ui/ tests that remain compile-fail tests.Felix S. Klock II-6/+6
2018-11-06Elide anon lifetimes in conflicting impl noteEsteban Küber-2/+2
2018-09-29UI test updatesScott McMurray-2/+2
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+2569