Commit Graph

858 Commits

Author SHA1 Message Date
Jonathan Brouwer f3e57a2264 Rollup merge of #156145 - danieljofficial:move-tests-cast, r=jieyouxu
Move tests cast

Hi, I have moved some type casting tests into the correct directory. Please find time to review
2026-05-12 18:53:38 +02:00
Matthias Krüger b2cdfa26e4 Rollup merge of #156306 - danieljofficial:move-tests-consts, r=TaKO8Ki
Move tests consts

Hi I have moved some tests from ui/issues into the fitting ui/consts folder

Fixes a part of rust-lang/rust#133895
2026-05-08 20:39:26 +02:00
bors 3e353d7353 Auto merge of #156274 - lokirithm:reorg-tests-03, r=wesleywiser
Reorg tests 03

| old-name | new-sub-dir | new-name |
|-|-|-|
| `issue-38727.rs` [issue](https://github.com/rust-lang/rust/issues/38727) | `abi/` | `return-ref-as-immediate-in-codegen.rs` |
| `issue-38437.rs` [issue](https://github.com/rust-lang/rust/issues/38437) | `mir/` | `reset-discriminant-drop-flag-on-partial-move.rs` |
| `issue-31910.rs` [issue](https://github.com/rust-lang/rust/issues/31910) | `associated-consts/` | `associated-const-in-enum-discriminant.rs` |
| `issue-31910.stderr` | `associated-consts/` | `associated-const-in-enum-discriminant.stderr` |
| `issue-48159.rs` [issue](https://github.com/rust-lang/rust/issues/48159) | `packed/` | `packed-c-style-struct.rs` |

r? Kivooeo
2026-05-08 05:02:55 +00:00
danieljofficial dcaef5f688 move consts ui tests into its folder 2026-05-07 17:42:25 +01:00
ujjwalVishwakarma2006 9884ea0c50 Move test files from issues/ to appropriate subdirectories 2026-05-07 14:32:04 +05:30
Jacob Pratt 3d841c1702 Rollup merge of #156241 - danieljofficial:move-tests-coercion, r=Kivooeo
Move tests coercion

Hi, I have moved some tests that belong in the coercion folder. Please take out time to review
r? @Kivooeo
2026-05-07 02:12:15 -04:00
Jonathan Brouwer 2744cb7ac6 Rollup merge of #156211 - kupiakos:space-in-hashbrown-src-location, r=wesleywiser
tests/ui: allow spaces in hashbrown src normalization

If one's home directory contains a space, the default location for the hashbrown source location also contains a space, and so the UI test normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and Windows paths. Relative paths don't seem to be applicable.
2026-05-06 22:39:20 +02:00
danieljofficial ccd70c194e move coercion tests out of ui/issues into its folder 2026-05-06 13:41:52 +01:00
Jacob Pratt f8a77e26f6 Rollup merge of #156195 - danieljofficial:move-tests-codegen, r=JohnTitor
Move tests codegen

Hi, I have moved some tests into the codegen folder
2026-05-05 22:50:27 -04:00
Alyssa Haroldsen a8d85e6368 tests/ui: allow spaces in hashbrown src normalization
If one's home directory contains a space, the default location for the
hashbrown source location also contains a space, and so the UI test
normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those
beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and
Windows paths. Relative paths don't seem to be applicable.
2026-05-05 14:23:02 -07:00
danieljofficial 3c45cc96e6 move codegen tests into its folder 2026-05-05 15:36:17 +01:00
Guillaume Gomez 7a08b693d4 Rollup merge of #156082 - danieljofficial:move-tests-associated-types, r=petrochenkov
Move tests associated types

Hi, I have moved some ui tests I feel belong in the associated types folder
2026-05-05 02:50:09 +02:00
danieljofficial d2cb145659 move type casting related tests into its dedicated folder 2026-05-04 15:45:31 +01:00
bors a51f3a89b2 Auto merge of #156044 - danieljofficial:move-tests-array-slice-vec, r=JonathanBrouwer
Move tests array slice vec

r? @Kivooeo 
Hi, some tests that belong in the  array-slice-vec folder
2026-05-04 03:00:26 +00:00
bors a3e96d8cb8 Auto merge of #155767 - adwinwhite:eager-norm-outside, r=lcnr
`-Znext-solver` Eager normalization outside of solver 




This PR adds a normalization routine for the next solver that behaves the same as the normalization in the old solver.
The new routine is used to normalize eagerly outside of the next solver.

This is [part 2](https://rust-lang.zulipchat.com/#narrow/channel/364551-t-types.2Ftrait-system-refactor/topic/Eager.20normalization.2C.20ahoy.21/near/582996783) of modifying the next solver to support eager normalization.

Those test changes are mostly wording changes, duplicating some errors or reducing some duplicates. But I could have overlooked something.
Notably it fixes the first, third and fourth examples in https://github.com/rust-lang/trait-system-refactor-initiative/issues/191, but not the second variant.

It's probably easier to review commit by commit.

Fixes rust-lang/rust#151308
Fixes rust-lang/rust#101557
Fixes rust-lang/rust#119692
Fixes rust-lang/rust#136859
2026-05-02 20:56:41 +00:00
Jonathan Brouwer dd3cb25042 Rollup merge of #156083 - danieljofficial:move-tests-attributes, r=JonathanBrouwer
Move tests attributes

I moved some attribute tests out of the issues folder into the attribute folder, please find time to review
2026-05-02 16:19:21 +02:00
Adwin White 1c1372c908 bless diagnostics change 2026-05-02 21:07:23 +08:00
danieljofficial 200d4e3b8a move tests from issues into attributes folder 2026-05-02 11:38:56 +01:00
danieljofficial 4cca528f80 add issue links and bless 2026-05-02 10:58:43 +01:00
danieljofficial b9499e0e97 move associated type tests out of issues 2026-05-02 08:45:06 +01:00
danieljofficial 3c82a61486 move tests from issues into associated-consts 2026-05-01 14:20:12 +01:00
danieljofficial 74c133bdba move tests from issues into array-slice-vec 2026-05-01 12:34:59 +01:00
ujjwalVishwakarma2006 526f3d9bbe Move test files from issues/ to appropriate subdirectories 2026-04-19 23:44:20 +05:30
Jonathan Brouwer 5c896555de Rollup merge of #155351 - ujjwalvishwakarma2006:reorg-tests-01, r=Kivooeo
Reorganize tests from `tests/ui/issues/`

The following tests are reorganized in this pull request

| old-name | new-sub-dir | new-name |
|-|-|-|
| `auxiliary/issue-2316-a.rs` | `resolve/auxiliary` | `resolve-conflict-local-vs-glob-import-a.rs` |
| `auxiliary/issue-2316-b.rs` | `resolve/auxiliary` | `resolve-conflict-local-vs-glob-import-b.rs` |
| `issue-2316-c.rs` | `resolve/` | `resolve-conflict-local-vs-glob-import.rs` |
| `issue-28839.rs` | `reborrow/` | `reborrow-mutable-reference.rs` |
| `issue-32008.rs` | `overloaded/` | `subtyping-both-lhs-and-rhs-in-add-impl.rs` |
| `issue-45425.rs` | `higher-ranked/` | `binop-lhs-hrtb-subtyping.rs` |

r? Kivooeo
2026-04-18 19:23:16 +02:00
ujjwalVishwakarma2006 8c78c33aba Move test files from issues/ to appropriate subdirectories 2026-04-15 23:46:29 +05:30
Jonathan Brouwer b8e88c7f49 Rollup merge of #155062 - ujjwalvishwakarma2006:reorg-tests, r=Kivooeo
Move tests from `tests/ui/issues/` to appropriate directories

In this PR, I am moving the following test from `tests/ui/issues` directory to the appropriate directories, followed by the addition of issue links at the top and reblessing of the stderr files:

| old-name | new-sub-dir | new-name |
|-|-|-|
| `issue-29516.rs` | `auto-traits/` | `distinct-type-tuple-by-negative-impl.rs` |
| `issue-3874.rs` | `binding/` | `ref-in-let-lhs-in-field.rs` |
| `issue-32782.rs` | `feature-gates/` | `feature-gate-check-nested-macro-invocation.rs` |
| `issue-32782.stderr` | `feature-gates/` | `feature-gate-check-nested-macro-invocation.stderr` |
| `issue-5100.rs` | `pattern/` | `match-errors-derived-error-suppression.rs` |
| `issue-5100.stderr` | `pattern/` | `match-errors-derived-error-suppression.stderr` |
| `issue-21033.rs` | `pattern/` | `match-struct-var-having-boxed-field.rs` |

r? Kivooeo
r? Teapot4195
2026-04-13 20:20:04 +02:00
Jonathan Brouwer 2ab9ebfd98 Rollup merge of #155055 - rishi-techo-14:ui-automation, r=Kivooeo
UI automation

# To move issue-3154 and issue-16774 to functional subdirectories:

I have moved 2 tests from tests/ui/issues to their appropriate directories using "test-manager" tool.
## Changes:

- Moved tests/ui/issues/issue-3154.rs to tests/ui/borrowck/missing-lifetime-in-return.rs

- Moved tests/ui/issues/issue-16774.rs to tests/ui/deref/derefmut-closure-drop-order.rs
These moves where performed using the test-manager automation tool.
2026-04-13 20:20:04 +02:00
ujjwalVishwakarma2006 c9bfc85d1e Move tests to appropriate subdirectories 2026-04-12 20:36:55 +05:30
rishi-techo-14 e4da93435e moved 2 tests to organized locations 2026-04-12 19:32:35 +05:30
danieljofficial c00aa3de46 move deref tests out of tests/ui/issues 2026-04-11 10:23:58 +01:00
Jonathan Brouwer 4ba9940cfc Rollup merge of #154473 - danieljofficial:move-tests-borrowck, r=Kivooeo
move borrow checker tests

Hi, I have moved some tests I think should be in the borrowck category. Please let me know if there are issues.  r? @Kivooeo
Related to rust-lang/rust#133895
2026-04-08 14:22:00 +02:00
Jonathan Brouwer 2875d8ef29 Rollup merge of #154506 - ujjwalvishwakarma2006:migrate-transmute-tests-02, r=Kivooeo
Migrate some tests from `tests/ui/issues` to appropriate directories

The following changes have been made in the pull request:

- `tests/ui/issues/issue-25746-bool-transmute.rs` ➝ `tests/ui/transmute/transmute-bool-u8.rs`
- `tests/ui/issues/issue-32377.{rs,stderr}` ➝ `tests/ui/intrinsics/transmute-phantomdata-generic-unequal-size.{rs,stderr}`

The issue links have also been added at the top of each `.rs` file.

r? Kivooeo
2026-04-07 17:26:28 +02:00
ujjwalVishwakarma2006 efbc155094 Move test files into appropriate directories 2026-04-06 10:39:54 +05:30
Jonathan Brouwer 0b7a11ff96 Rollup merge of #154615 - aryannrd:moving-issues, r=Kivooeo
Moving issues
2026-04-02 22:13:56 +02:00
Jonathan Brouwer d7d8255d50 Rollup merge of #154425 - ujjwalvishwakarma2006:migrate-transmute-tests, r=Kivooeo,Teapot4195
Migrate transmute tests

I have made the following changes in this PR:

- `tests/ui/issues/issue-23477.rs` ➝ `tests/ui/transmute/transmute-slice-to-dst.rs`
- `tests/ui/issues/issue-28625.{rs,stderr}` ➝ `tests/ui/transmute/transmute-associated-type-to-slice.{rs,stderr}`

The reason I changed the trait name from `trait Bar` to `trait MyTrait` and `type Bar` to `type MyType` is that the same name (i.e., `Bar`) for the trait and associated type was making it harder to follow the test. It was confusing for me, at least.

r? Kivooeo
2026-04-02 22:13:53 +02:00
cyrgani d24ebcb47c rename some issues-* tests 2026-03-30 20:40:15 +00:00
Aryan Dubey 16c3d975e0 Moved and renamed issue-38160 to macros/macro-const-stringify.rs 2026-03-29 21:19:32 -04:00
danieljofficial a1fd54e08e move borrowck tests out of tests/ui/issues 2026-03-29 06:42:04 +01:00
Aryan Dubey 09e48be115 Moved and renamed issue-49973.rs to layout/opt-repr-i32-min.rs 2026-03-28 20:58:22 -04:00
Aryan Dubey f1797f8cf4 Moved and renamed issue-34571.rs to enum/enum_u8_variant.rs 2026-03-28 14:28:02 -04:00
Ralf Jung 7881a31ccf Rollup merge of #152880 - JohnTitor:tweak-assoc-item-note, r=fmease
Tweak incorrect assoc item note

Fix rust-lang/rust#142797
r? @fmease
2026-03-28 13:15:48 +01:00
Yuki Okushi 531631c7ad Make messages more generic 2026-03-28 16:18:11 +09:00
ujjwalVishwakarma2006 3250d8d28b Move 3 files (2 .rs and 1 .stderr) from ui/issues to ui/transmute 2026-03-26 19:55:26 +05:30
Jonathan Brouwer c8d729b72a Rollup merge of #154386 - ujjwalvishwakarma2006:migrate-ui-tests, r=Kivooeo
Migrate UI tests

In this pull request, I am migrating the following files and adding a comment at the top, including a link to the issue they were regression tests for:
- `tests/ui/issues/issue-4735.rs` ➝ `tests/ui/drop/drop-noncopyable-raw-pointer.rs`
- `tests/ui/issues/issue-17734.rs` ➝ `tests/ui/codegen/box-str-drop-glue.rs`

r? Kivooeo
2026-03-26 00:23:15 +01:00
ujjwalVishwakarma2006 f7b3e88947 Rename two test files 2026-03-26 01:50:12 +05:30
Jonathan Brouwer 4b9e6557dd Rollup merge of #154233 - kyleecodes:tests/reorg-ui-issues, r=Kivooeo
Move ui/issues tests to relevant subdirectories

Related to https://github.com/rust-lang/rust/issues/133895 and [Reorganisation of tests/ui/issues for GSOC](https://github.com/rust-lang/google-summer-of-code?tab=readme-ov-file#reorganisation-of-testsuiissues)

This is the first PR in a batch of PRs.

Moves `ui/issues/issue-17546.rs‎`  ‎-> `ui/variants/variant-result-noresult-used-as-type.rs`

Approach:
1. Check linked issue and test contents, determine new target directory
2. Move / rename tests to reflect purpose.
3. Add issue link / comments in separate commit.
4. Rebless if necessary and remove obsolete stderr.

r? @Kivooeo
2026-03-25 19:53:00 +01:00
Jonathan Brouwer 8ae423e5e8 Rollup merge of #154230 - aryannrd:issue-50411, r=Kivooeo
Moved and rename issue-50411 to tests/ui/mir/inliner-double-elaborate
2026-03-25 19:52:59 +01:00
Jonathan Brouwer 047dee4665 Rollup merge of #154090 - danieljofficial:move-tests-statics, r=Kivooeo
Move tests in the statics category

I have moved some tests I feel belong in the statics directory. Please review and let me know if this is the correct way. I think on the first two files I moved, i forgot to turn off rust analyzer and it probably formatted the files, will this be an issue?
2026-03-25 19:52:57 +01:00
Aryan Dubey 2a543acbaf Moved and rename issue-50411 to tests/ui/mir/inliner-double-elaborate
* Move issue-50411 to tests/ui/mir/inliner-double-elaborate
* Addded the link for the issue to inliner-double-elaborate.rs
* Fix tidy issues
* Renamed to inliner-double-elaborate.rs
2026-03-25 10:13:13 +00:00
kyleecodes 62ba3c1022 Move ui/issues tests to relevant subdirectories
* tests(ui): migrate issues/issue-17546 to ui/resolve
* tests(ui): add gh issue link
* tests(ui/issues): move tests to variants dir
2026-03-25 00:35:04 +00:00