Commit Graph

130 Commits

Author SHA1 Message Date
Shoyu Vanilla
e50bdff7cb Bless tests 2026-08-10 10:05:45 +02:00
Jonathan Brouwer
374ec00512 Rollup merge of #160781 - zakrad:regr-test-66367, r=mejrs
Add regression test for save temps ICE on incremental recompile

Closes rust-lang/rust#66367 adds an incremental regression test for adding -C save-tempsthat used to ICE
2026-08-09 18:22:29 +02:00
zakrad
2586cedc4a Add regression test for save-temps ICE on incremental recompile 2026-08-08 23:41:55 +03:30
Lucas Sunsi Abreu
105dd730f5 add regression test for adt_sized_constraint ice on incremental compilation 2026-08-07 13:47:51 -03:00
addie.sh
dd17e77729 Next steps for FnDef binder changes (instantiate most FnDef binders) 2026-08-03 13:11:04 -04:00
Nicholas Nethercote
ff161b18b5 Many "predicate"-to-"clause" renamings
Lots of names weren't changed to account for the introduction of the
`Clause` type as a specialized form of `Predicate`, presumably because
it was tedious. This commit converts as many of them as I could find.
It's mostly very tedious renamings of types, functions, variables, and
queries. The more interesting ones are a couple of files
(`predicates_of.rs`, `impossible_predicates.rs`) and a MIR pass
(`ImpossiblePredicates`).
2026-07-28 11:48:45 +10:00
Jana Dönszelmann
25745ee1f1 fix all tidy annotations 2026-07-13 10:54:53 +02:00
Jonathan Brouwer
f72b8665d8 Fix incremental tests 2026-06-21 10:01:09 +02:00
Jonathan Brouwer
1e5f587273 Add regression test for ICE 2026-06-19 13:03:10 +02:00
aerooneqq
6f4711f559 Add simple test for incremental compilation of delegations 2026-06-17 13:05:13 +03:00
Jonathan Brouwer
56810797ee Fix incremental tests 2026-06-13 18:26:48 +02:00
bors
77a4fb62f7 Auto merge of #155678 - aerooneqq:single-owners-query-exp, r=oli-obk
Merge several HIR-level queries into one



Now four queries (`local_def_id_to_hir_id`, `opt_hir_owner_nodes`, `opt_ast_lowering_delayed_lints`, `in_scope_traits_map`) were replaced with regular methods which acts like getters. 
An `hir_owner` query was added that returns a `ProjectedMaybeOwner` that contains all those fields. `hir_attr_map` remains a separate query as adding attributes to `ProjectedMaybeOwner` led to [perf regressions](https://github.com/rust-lang/rust/pull/155678#issuecomment-4304597871). 
There is a similar issue with `in_scopes_trait_map`, but according to the comments from https://github.com/rust-lang/rustc-perf/pull/2436 it is a rare case.
Most of the changes in incremental tests are renames from `opt_hir_owner_nodes` -> `hir_owner`, but there are few cases when new dirty queries were added.

r? @petrochenkov
r? @oli-obk
2026-05-27 11:45:44 +00:00
cyrgani
7450bf099e reduce usage of box_patterns in tests 2026-05-18 10:14:41 +00:00
aerooneqq
1f60130485 Add hir_ prefixes for queries 2026-05-18 08:51:08 +03:00
aerooneqq
5f6b026721 Merge several hir-level queries into single owner query 2026-05-15 11:16:56 +03:00
Jacob Pratt
71e64b9d25 Rollup merge of #156124 - nnethercote:StableHash-renamings-2, r=jieyouxu
Make stable hashing names consistent (part 2)

This PR finishes the implementation of MCP 893.

r? @jieyouxu
2026-05-09 09:27:58 -04:00
Nicholas Nethercote
ad6647f904 Rename the span_hash_stable method as stable_hash_span.
Likewise for the corresponding incremental test.

Part of MCP 983.
2026-05-08 14:37:20 +10:00
Qai Juang
0f437887c6 Do not cache lints_that_dont_need_to_run across sessions 2026-05-05 19:17:53 -04:00
Oli Scherer
11d88ee42b Rip out rustc_layout_scalar_valid_range_* attribute support 2026-05-03 10:59:52 +02:00
Zalathar
edbb86264d Add support for cpass incremental revisions 2026-04-22 12:34:14 +10:00
Zalathar
0ea8958c02 Migrate bfail/build-pass tests to bpass (2/2)
This is the subset of incremental tests that have a FIXME to consider migrating
to check-pass instead.

That migration is beyond the scope of this PR, but might be attempted later.
2026-04-22 12:28:25 +10:00
Zalathar
793c646b7b Migrate bfail/build-pass tests to bpass (1/2)
This is the subset of incremental tests that should continue to use `bpass`
even after `cpass` is supported, because they (presumably) involve codegen.
2026-04-22 12:28:25 +10:00
Zalathar
72abf370bb Rename incremental cfail/cpass revisions to bfail/bpass
Long ago, UI tests were divided into "compile" and "run" tests. Later, the
compile tests were further subdivided into "check" and "build" tests, to speed
up tests that don't need a full build.

The same split was never applied to incremental test revisions, so the only way
to perform a check build in incremental tests is (confusingly) to use a `cfail`
revision and then specify `//@ check-fail` or `//@ check-pass`.

This PR makes room for dedicated check-fail and check-pass revisions by
renaming the existing `cfail` and `cpass` revisions to `bfail` and `bpass`,
since they currently perform a full build.
2026-04-18 18:13:17 +10:00
Jonathan Brouwer
5c7384e1c9 Add regression test 2026-04-17 16:08:45 +02:00
Zalathar
975402e329 Remove the //@ should-ice directive
This directive was only being used by one test, which can just as easily use
the more general `//@ failure-status` directive instead.

All of the removed exit-code checks were redundant with other exit-code checks
that are still present.
2026-04-17 13:43:50 +10:00
Zalathar
c79fcfcca8 Fix some irrelevant warnings in tests/incremental
This avoids having to add several unhelpful annotations when enabling
diagnostic checks for `cpass` and `rpass` revisions.
2026-04-13 20:48:07 +10:00
Jonathan Brouwer
ea86990ee6 Regression test for issue 154878
Co-authored-by: Edvin Bryntesson <epost@edvinbryntesson.se>
2026-04-09 20:34:37 +02:00
Zalathar
a5181d2fd6 Remove rfail support from incremental tests
Incremental revisions beginning with `rfail` would cause the incremental test
runner to build the test program, expecting success, and then run the test
program, expecting failure.

Expecting incremental tests to fail at runtime is of questionable utility,
because in almost all cases an equivalent test program can be made to succeed
at runtime instead.

Removing `rfail` support is a small step towards cleaning up compiletest's
incremental test runner, and its overall handling of pass/fail expectations.

There was one existing regression test using `rfail` revisions:
`tests/incremental/issue-80691-bad-eval-cache.rs`. The test code is complex,
and reverting the fix in RUST-83220 does not actually cause the test to fail,
suggesting that it is no longer a useful regression test. This commit therefore
deletes that test.
2026-04-04 13:31:31 +11:00
bors
009a6c1e8b Auto merge of #154308 - ShoyuVanilla:undo-fudge-iv, r=jieyouxu
Revert #151380 and #153869

cc https://rust-lang.zulipchat.com/#narrow/channel/474880-t-compiler.2Fbackports/topic/.23153869.3A.20beta-nominated/with/581306395

r? ghost
2026-04-02 00:09:59 +00:00
Daria Sukhonina
1792232d01 fix tests/incremental/hashes 2026-03-28 12:38:49 +03:00
Daria Sukhonina
5cf7376aac Rename typeck into typeck_root in tests/incremental 2026-03-28 12:38:49 +03:00
Shoyu Vanilla
d5bbeb978e Revert "Auto merge of #151380 - ShoyuVanilla:shallow-resolve-to-root-var, r=lcnr"
This reverts commit 75b9d89c68, reversing
changes made to 7bee525095.
2026-03-24 22:31:37 +09:00
John Kåre Alsaker
fed57899b9 Remove value_from_cycle_error specialization for type_of 2026-03-13 18:52:26 +01:00
mu001999
0436634084 Remove unused features in tests 2026-03-04 08:06:45 +08:00
mu001999
28b6bcb42d Add tests for unused-features 2026-03-02 09:38:04 +08:00
mejrs
cfc2468969 Port rustc_on_unimplemented attribute 2026-02-24 10:50:38 +01:00
Camille Gillot
a182053fa0 Bless incremental. 2026-02-22 19:43:57 +00:00
Shoyu Vanilla
8062bee9e3 Bless tests 2026-02-11 18:08:18 +09:00
Jamie Hill-Daniel
94a0ba50e1 Port rustc_clean to attribute parser
Also remove mentions of removed `rustc_dirty`
2026-02-04 20:58:02 +00:00
Felix Rath
8fa2f693bb Implement incremental caching for derive macro expansions 2026-01-16 07:36:36 +01:00
mu001999
6c2dc40666 Bless other tests 2026-01-07 09:33:40 +08:00
Jonathan Brouwer
1d204fcf1d Add unsafe to no_mangle incremental tests 2025-12-03 17:00:22 +01:00
Mara Bos
7b42543f81 Bless tests. 2025-11-12 12:48:27 +01:00
Romain Perier
c8c04663c5 Add a note when a type implements a trait with the same name as the required one
This is useful when you have two dependencies that use different trait for
the same thing and with the same name. The user can accidentally implement
the bad one which might be confusing. This commits refactorizes existing
diagnostics about multiple different crates with the same version and adds
a note when similarly named traits are found. All diagnostics are merged
into a single one.
2025-11-11 17:36:43 +01:00
Ben Kimock
775da711c6 Add a fast path for lowering trivial consts 2025-10-25 16:59:53 -04:00
Guillaume Gomez
5ff7ca2e22 Ignore failing incremental tests for GCC backend 2025-10-13 15:20:49 +02:00
Camille GILLOT
27127e342d Bless incremental tests. 2025-07-13 13:50:01 +00:00
Oli Scherer
38ef94aef1 Stop requiring HIR for trait item wf checks 2025-06-30 08:45:43 +00:00
Oli Scherer
cb158c2119 Merge lower_item into check_item_type 2025-06-30 08:45:43 +00:00
Oli Scherer
9b5d57d0a9 Unconditionally run check_item_type on all items 2025-06-30 08:06:08 +00:00