relocate several ui tests

This commit is contained in:
cyrgani
2026-03-13 10:00:39 +00:00
parent 7ad5c60217
commit 9e97c57cc8
9 changed files with 2 additions and 12 deletions
-10
View File
@@ -1000,12 +1000,6 @@ Tests on lifetimes on objects, such as a lifetime bound not being able to be ded
**FIXME**: Just a more specific subset of `ui/lifetimes`.
## `tests/ui/obsolete-in-place/`
Contains a single test. Check that we reject the ancient Rust syntax `x <- y` and `in(BINDING) {}` construct.
**FIXME**: Definitely should be rehomed, maybe to `tests/ui/deprecation/`.
## `tests/ui/offload`
Exercises the offload feature.
@@ -1023,10 +1017,6 @@ Exercises the [`std::mem::offset_of` macro](https://doc.rust-lang.org/beta/std/m
Exercises the `#[rustc_on_unimplemented]`.
## `tests/ui/operator-recovery/`
**FIXME**: Probably move under `tests/ui/binop/` or `tests/ui/parser/`.
## `tests/ui/or-patterns/`
Exercises `||` and `|` in patterns.
@@ -1,5 +1,5 @@
error: unexpected token: `<-`
--> $DIR/bad.rs:5:7
--> $DIR/removed-syntax-obsolete-in-place.rs:5:7
|
LL | x <- y;
| ^^
@@ -10,7 +10,7 @@ LL | x < - y;
| +
error: expected expression, found keyword `in`
--> $DIR/bad.rs:10:5
--> $DIR/removed-syntax-obsolete-in-place.rs:10:5
|
LL | in(foo) { bar };
| ^^ expected expression