rust/tests/ui/rfcs
Guillaume Gomez f4a5cbd0d8
Rollup merge of #136112 - fmease:clean-up-all-dead-files-in-ui-tests, r=compiler-errors
Clean up all dead files inside `tests/ui/`

While rebasing #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 #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 #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? compiler
2025-01-27 15:38:29 +01:00
..
impl-trait
rfc-0000-never_patterns Remove all dead files inside tests/ui/ 2025-01-27 02:28:04 +01:00
rfc-0107-bind-by-move-pattern-guards Suggest .clone() in some move errors 2024-04-11 16:41:41 +00:00
rfc-1014-stdout-existential-crisis Remove libc from more tests 2024-04-17 08:36:49 -04:00
rfc-1445-restrict-constants-in-patterns Add more context to fall-through "const pattern of non-structural type" error 2024-12-04 20:29:36 +00:00
rfc-1623-static properly fill a promoted's required_consts 2024-04-23 23:02:54 +02:00
rfc-1717-dllimport
rfc-1789-as-cell
rfc-1857-stabilize-drop-order
rfc-1937-termination-trait Remove all dead files inside tests/ui/ 2025-01-27 02:28:04 +01:00
rfc-2005-default-binding-mode
rfc-2008-non-exhaustive Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
rfc-2027-dyn-compatible-for-dispatch UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
rfc-2091-track-caller remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
rfc-2093-infer-outlives
rfc-2126-crate-paths
rfc-2126-extern-absolute-paths Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
rfc-2151-raw-identifiers
rfc-2175-or-if-while-let
rfc-2294-if-let-guard Also check if let chains with multiple lets in these two tests 2024-11-16 05:01:52 +01:00
rfc-2302-self-struct-ctor
rfc-2306-convert-id
rfc-2361-dbg-macro Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
rfc-2396-target_feature-11 Add a suggestion to cast target_feature fn items to fn pointers. 2025-01-25 21:36:40 +01:00
rfc-2421-unreserve-pure-offsetof-sizeof-alignof
rfc-2457-non-ascii-idents
rfc-2497-if-let-chains Remove all dead files inside tests/ui/ 2025-01-27 02:28:04 +01:00
rfc-2528-type-changing-struct-update
rfc-2565-param-attrs Stabilize async closures 2024-12-13 00:04:56 +00:00
rfc-2627-raw-dylib Update tests. 2025-01-07 16:04:14 +01:00
rfc-3348-c-string-literals Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
type-alias-impl-trait
rfc-3391-result-ffi-guarantees.rs lang: Strengthen RFC 3391 guarantees to match T-lang consensus 2024-10-21 00:43:36 -07:00