Commit f4a5cbd
authored
Rollup merge of rust-lang#136112 - fmease:clean-up-all-dead-files-in-ui-tests, r=compiler-errors
Clean up all dead files inside `tests/ui/`
While rebasing rust-lang#135860 I noticed that there are several dead `*.stderr` files inside `tests/ui/`.
When I checked thoroughly, I found 69 dead `*.$revision.stderr` files, 3 other dead `*.stderr` files and one dead `*.rs` file.
Prior to rust-lang#134808, compiletest's `--bless` didn't remove dead `*.stderr` files when the set of revisions changed in any way (renamings, removals, additions, …) which explains their existence.
Regarding the dead `*.rs` file, that one was located inside an `auxiliary/` directory (together with a `*.stderr` file) despite not being meant to be an auxiliary file (it's not referenced by any `//@ aux-*`, it has an accompanying `*.stderr` file and it's obvious from looking at rust-lang#111056 which added it). Ideally compiletest or tidy would forbid `*.std{out,err}` files inside `auxiliary/` dirs, that would've caught it. I moved it, updated it and turned it into a proper UI test.
---
How to reproduce:
1. Run `rm tests/ui/**/*.stderr`
2. Run `./x test tests/ui --bless` (or similar)
3. Manually / semi-automatically go through all tests that were ignored (likely due to your OS etc. not matching) and restore any stderr files that were overzealously removed
---
r? compilerFile tree
76 files changed
+45
-3628
lines changed- src/tools/tidy/src
- tests/ui
- associated-type-bounds/return-type-notation
- async-await/return-type-notation
- cfg
- closures/closure-expected-type
- cmse-nonsecure/cmse-nonsecure-entry
- consts
- const-eval
- coroutine
- generic-associated-types
- generic-const-items
- higher-ranked/trait-bounds
- impl-trait
- multiple-lifetimes
- infinite
- issues
- auxiliary
- issue-37311-type-length-limit
- json
- lazy-type-alias
- nll
- user-annotations
- pattern/usefulness
- recursion
- rfcs
- rfc-0000-never_patterns
- rfc-1937-termination-trait
- rfc-2497-if-let-chains
- rmeta
- rust-2024
- unsafe-extern-blocks
- specialization
- suggestions
- traits
- next-solver/coherence
- trait-upcasting
- treat-err-as-bug
- type-alias-impl-trait
- type/pattern_types
- uninhabited
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+45
-3628
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
1389 | 1388 | | |
1390 | 1389 | | |
1391 | 1390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 0 additions & 9 deletions
This file was deleted.
This file was deleted.
0 commit comments