about summary refs log tree commit diff
path: root/tests/incremental
AgeCommit message (Collapse)AuthorLines
2024-04-06Add missing -Zquery-dep-graph to the spike-neg incr comp testsbjorn3-0/+2
This ensures that the tests actually test what they are meant to test rather than exitting immediately with an error that -Zquery-dep-graph has to be passed.
2024-04-03Remove MIR unsafe checkMatthew Jasper-7/+7
This also remove safety information from MIR.
2024-04-01Make sure to insert Sized bound first into clauses listMichael Goulet-1/+1
2024-03-11Update test directives for `wasm32-wasip1`Alex Crichton-2/+0
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
2024-02-25fix use of platform_intrinsics in testsRalf Jung-2/+2
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-496/+496
2024-02-13Auto merge of #120919 - oli-obk:impl_polarity, r=compiler-errorsbors-4/+4
Merge `impl_polarity` and `impl_trait_ref` queries Hopefully this is perf neutral. I want to finish https://github.com/rust-lang/rust/pull/120835 and stop using the HIR in `coherent_trait`, which should then give us a perf improvement.
2024-02-12Make impl_trait_ref into a query also returning more information about the implOli Scherer-4/+4
2024-02-12Tweak delayed bug mentions.Nicholas Nethercote-2/+2
Now that we have both `delayed_bug` and `span_delayed_bug`, it makes sense to use the generic term "delayed bug" more.
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-1/+5
2024-02-01fix rebaseEsteban Küber-1/+1
2024-02-01Change incr comp test when adding explicit `Sized` boundEsteban Küber-2/+2
Given the previous change to add implicit `Sized` bounds only if there isn't already an explicit `Sized` bound, now the incr comp machinery doesn't consider adding the explicit bound as being dirty, as long as `-Zincremental-ignore-spans` is set.
2024-01-30hir: Simplify `hir_owner_nodes` queryVadim Petrochenkov-849/+849
The query accept arbitrary DefIds, not just owner DefIds. The return can be an `Option` because if there are no nodes, then it doesn't matter whether it's due to NonOwner or Phantom. Also rename the query to `opt_hir_owner_nodes`.
2024-01-20Track `verbose` and `verbose_internals`jyn-3/+3
bjorn3 says: > On errors we don't finalize the incr comp cache, but non-fatal diagnostics are cached afaik. Otherwise we would have to replay the query in question, which we may not be able to do if the query key is not reconstructible from the dep node fingerprint. So we must track these flags to avoid replaying incorrect diagnostics.
2024-01-16Bless incremental tests.Camille GILLOT-570/+533
2023-12-24Disable opt in incremental test.Camille GILLOT-2/+2
2023-12-24Bless incremental tests.Camille GILLOT-3/+3
2023-12-19rustc_codegen_ssa: Don't let `IncorrectCguReuseType` errors get lostMartin Nordholts-10/+14
In [100753], `IncorrectCguReuseType` accidentally stopped being emitted. Begin emitting it again rather than just blindly dropping it, and adjust tests accordingly. [100753]: https://github.com/rust-lang/rust/pull/100753/commits/706452eba74026c51e8d0fa30aee2497c69eafc0#diff-048389738ddcbe0f9765291a29db1fed9a5f03693d4781cfb5aaa97ffb3c7f84
2023-12-12tests: CGU tests require build-pass, not check-pass (remove FIXME)Martin Nordholts-3/+3
CGU tests require CGU code to be exercised. We can't merely do "cargo check" on these tests.
2023-12-02Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`.Nicholas Nethercote-2/+2
Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc.
2023-10-28Remove asmjs from testsJubilee Young-5/+0
2023-10-06Bless incremental tests.Camille GILLOT-10/+10
2023-09-29Rollup merge of #116263 - ferrocene:pa-more-bare-metal-fixes, r=oli-obkMatthias Krüger-0/+1
More fixes for running the test suite on a bare metal target This PR adds more fixes needed to run the test suite on bare metal targets (in this case, without unwinding and with static relocations). There is no CI job exercising tests without unwinds, but I can confirm this worked in Ferrocene's CI.
2023-09-29mark relevant tests as requiring unwindingPietro Albini-0/+1
2023-09-28Unconditionally run `RevealAll` pass and run it earlierOli Scherer-1/+1
2023-08-03Forbid old-style `simd_shuffleN` intrinsicsOli Scherer-3/+3
2023-07-16Querify unused trait check.Camille GILLOT-2/+2
2023-07-10Bless incremental test.Camille GILLOT-1/+1
2023-06-01Implement custom diagnostic for ConstParamTyMichael Goulet-4/+39
2023-06-01Auto merge of #112002 - saethlin:enable-sroa, r=oli-obk,scottmcmbors-1/+2
Enable ScalarReplacementOfAggregates in optimized builds Like MatchBranchSimplification, this pass is known to produce significant runtime improvements in Cranelift artifacts, and I believe based on the perf runs here that the primary effect of this pass is to empower MatchBranchSimplification. ScalarReplacementOfAggregates on its own has little effect on anything, but when this was rebased up to include https://github.com/rust-lang/rust/pull/112001 we started seeing significant and majority-positive results. Based on the fact that we see most of the regressions in debug builds (https://github.com/rust-lang/rust/pull/112002#issuecomment-1566270144) and some rather significant ones in cycles and wall time, I'm only enabling this in optimized builds at the moment.
2023-05-31Enable ScalarReplacementOfAggregatesBen Kimock-1/+2
2023-05-31Only rewrite valtree-constants to patterns and keep other constants opaqueOli Scherer-10/+3
2023-05-29Add a test for issue 110457Maybe Waffle-0/+137
2023-05-17Delay a bug when overwriting fed value.Camille GILLOT-0/+1
2023-05-17Add incremental test.Camille GILLOT-0/+16
2023-05-02Add needs-unwind annotations to tests that need stack unwindingbjorn3-0/+2
2023-04-22Turn on ConstDebugInfo pass.Wesley Wiser-8/+8
2023-04-20Add incremental tests.Camille GILLOT-0/+97
2023-04-04incr.comp.: Make sure dependencies are recorded when feeding queries during ↵Michael Woerister-0/+16
eval-always queries.
2023-03-19Rollup merge of #105793 - lukas-code:circular-deps, r=Mark-SimulacrumDylan DPC-0/+47
Add note for mismatched types because of circular dependencies If you have crate A with a dependency on crate B, and crate B with a dev-dependency on A, then you might see "mismatched types" errors on types that seem to be equal. This PR adds a note that explains that the types are different, because crate B is compiled twice, one time with `cfg(test)` and one time without. I haven't found a good way to create circular dependencies in UI tests, so I abused the incremental tests instead. As a bonus, incremental tests support "cpass" now. related to https://github.com/rust-lang/rust/issues/22750
2023-03-14Bless incremental test.Camille GILLOT-2/+2
2023-03-05Add note for mismatched types with circular dependenciesLukas Markeffsky-0/+47
2023-01-11Move /src/test to /testsAlbert Larsan-0/+13563