Commit Graph

866 Commits

Author SHA1 Message Date
zedddie a25ec1a018 move batch 2026-05-25 17:55:04 +02:00
Jonathan Brouwer ea21bcc942 Rollup merge of #156317 - lokirithm:reorg-tests-04, r=Kivooeo
Reorg tests 04

| old-name | new-sub-dir | new-name |
|-|-|-|
| `issue-27997.rs` [issue](https://github.com/rust-lang/rust/issues/27997) | `codegen/` | `correctly-monomorphize-generic-drop-impl.rs` |
| `issue-31299.rs` [issue](https://github.com/rust-lang/rust/issues/31299) | `associated-types/` | `sized-recursive-type-via-associated-type.rs` |
| `issue-35815.rs` [issue](https://github.com/rust-lang/rust/issues/35815) | `codegen/` | `dont-roundup-dst-prefix-size-to-alignment.rs` |
| `issue-46855.rs` [issue](https://github.com/rust-lang/rust/issues/46855) | `mir/` | `dont-use-operand-as-place-for-zst.rs` |
| `issue-47486.rs` [issue](https://github.com/rust-lang/rust/issues/47486) | `consts/` | `size_of-requires-type-annotation-in-const.rs` |
| `issue-47486.stderr` | `consts/` | `size_of-requires-type-annotation-in-const.stderr` |
| `issue-50811.rs` [issue](https://github.com/rust-lang/rust/issues/50811) | `mir/` | `validate-various-comparison-behavior.rs` |
2026-05-20 15:37:30 +02:00
Jonathan Brouwer 9283c8e59b Rollup merge of #156547 - danieljofficial:move-tests-closures, r=adwinwhite
Move tests closures

Hi, I have moved a few closures related tests. Please review them when you can find the time. This is a part of [133895](https://github.com/rust-lang/rust/issues/133895)
2026-05-19 15:04:43 +02:00
Jonathan Brouwer 62c2da091b Rollup merge of #148788 - TomtheCoder2:unconstrained-parameter-fix, r=davidtwco
Unconstrained parameter fix

This PR is an attempt to solve the issue described in the issue rust-lang/rust#107295
2026-05-15 20:11:41 +02:00
danieljofficial 3429bdf127 add issue links and bless 2026-05-13 15:03:47 +01:00
danieljofficial b502d55288 move closures related ui tests into its folder 2026-05-13 14:03:45 +01:00
lokirithm ee5f63f888 Move test files from issues/ to appropriate subdirectories 2026-05-13 01:15:59 +05:30
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
janwi_mac d02b4c8e77 Improve suggestions for unconstrained parameters in impl blocks
When an unconstrained type or lifetime parameter is detected in an
`impl`, provide more specific help based on its usage:
- If the parameter is entirely unused, suggest removing it.
- If it is used in the `impl` body but not the `Self` type, suggest
  including it in the `Self` type and the struct definition.

This also adds a comprehensive UI test for these cases.
2026-05-09 17:50:35 +12: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