about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJules Bertholet <julesbertholet@quoi.xyz>2025-09-25 23:57:59 -0400
committerJules Bertholet <julesbertholet@quoi.xyz>2025-09-25 23:57:59 -0400
commit5de617e71f7ab7f70f13381033c09f1c6ad55e0f (patch)
treede94cb6927dae38433d5c702da479a53b7f268f8 /tests
parent60dd0df6e73e195b9779121bac7e2927ddcf48f2 (diff)
downloadrust-5de617e71f7ab7f70f13381033c09f1c6ad55e0f.tar.gz
rust-5de617e71f7ab7f70f13381033c09f1c6ad55e0f.zip
Rename ui test items
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/associated-type-bounds/duplicate-bound-err.rs18
-rw-r--r--tests/ui/associated-type-bounds/duplicate-bound-err.stderr24
-rw-r--r--tests/ui/associated-type-bounds/duplicate-bound.rs90
3 files changed, 66 insertions, 66 deletions
diff --git a/tests/ui/associated-type-bounds/duplicate-bound-err.rs b/tests/ui/associated-type-bounds/duplicate-bound-err.rs
index 50db5de7ca7..01cc05f2545 100644
--- a/tests/ui/associated-type-bounds/duplicate-bound-err.rs
+++ b/tests/ui/associated-type-bounds/duplicate-bound-err.rs
@@ -5,31 +5,31 @@
 
 use std::iter;
 
-fn frpit1() -> impl Iterator<Item: Copy, Item: Send> {
+fn rpit1() -> impl Iterator<Item: Copy, Item: Send> {
     iter::empty()
     //~^ ERROR type annotations needed
 }
-fn frpit2() -> impl Iterator<Item: Copy, Item: Copy> {
+fn rpit2() -> impl Iterator<Item: Copy, Item: Copy> {
     iter::empty()
     //~^ ERROR type annotations needed
 }
-fn frpit3() -> impl Iterator<Item: 'static, Item: 'static> {
+fn rpit3() -> impl Iterator<Item: 'static, Item: 'static> {
     iter::empty()
     //~^ ERROR type annotations needed
 }
 
-type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
+type Tait1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
 //~^ ERROR unconstrained opaque type
-type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
+type Tait2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
 //~^ ERROR unconstrained opaque type
-type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
+type Tait3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
 //~^ ERROR unconstrained opaque type
 
-type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
+type Tait4 = impl Iterator<Item: Copy, Item: Send>;
 //~^ ERROR unconstrained opaque type
-type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
+type Tait5 = impl Iterator<Item: Copy, Item: Copy>;
 //~^ ERROR unconstrained opaque type
-type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
+type Tait6 = impl Iterator<Item: 'static, Item: 'static>;
 //~^ ERROR unconstrained opaque type
 
 fn mismatch() -> impl Iterator<Item: Copy, Item: Send> {
diff --git a/tests/ui/associated-type-bounds/duplicate-bound-err.stderr b/tests/ui/associated-type-bounds/duplicate-bound-err.stderr
index 6c1dc03676c..1737d0dc5a3 100644
--- a/tests/ui/associated-type-bounds/duplicate-bound-err.stderr
+++ b/tests/ui/associated-type-bounds/duplicate-bound-err.stderr
@@ -34,50 +34,50 @@ LL |     iter::empty::<T>()
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:21:51
    |
-LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
+LL | type Tait1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
    |                                                   ^^^^^^^^^
    |
-   = note: `ETAI1` must be used in combination with a concrete type within the same crate
+   = note: `Tait1` must be used in combination with a concrete type within the same crate
 
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:23:51
    |
-LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
+LL | type Tait2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
    |                                                   ^^^^^^^^^
    |
-   = note: `ETAI2` must be used in combination with a concrete type within the same crate
+   = note: `Tait2` must be used in combination with a concrete type within the same crate
 
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:25:57
    |
-LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
+LL | type Tait3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
    |                                                         ^^^^^^^^^
    |
-   = note: `ETAI3` must be used in combination with a concrete type within the same crate
+   = note: `Tait3` must be used in combination with a concrete type within the same crate
 
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:28:14
    |
-LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
+LL | type Tait4 = impl Iterator<Item: Copy, Item: Send>;
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: `ETAI4` must be used in combination with a concrete type within the same crate
+   = note: `Tait4` must be used in combination with a concrete type within the same crate
 
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:30:14
    |
-LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
+LL | type Tait5 = impl Iterator<Item: Copy, Item: Copy>;
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: `ETAI5` must be used in combination with a concrete type within the same crate
+   = note: `Tait5` must be used in combination with a concrete type within the same crate
 
 error: unconstrained opaque type
   --> $DIR/duplicate-bound-err.rs:32:14
    |
-LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
+LL | type Tait6 = impl Iterator<Item: 'static, Item: 'static>;
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = note: `ETAI6` must be used in combination with a concrete type within the same crate
+   = note: `Tait6` must be used in combination with a concrete type within the same crate
 
 error[E0277]: `*const ()` cannot be sent between threads safely
   --> $DIR/duplicate-bound-err.rs:35:18
diff --git a/tests/ui/associated-type-bounds/duplicate-bound.rs b/tests/ui/associated-type-bounds/duplicate-bound.rs
index 97b2b3905a5..696710d76f6 100644
--- a/tests/ui/associated-type-bounds/duplicate-bound.rs
+++ b/tests/ui/associated-type-bounds/duplicate-bound.rs
@@ -7,84 +7,84 @@
 use std::iter;
 use std::mem::ManuallyDrop;
 
-struct SI1<T: Iterator<Item: Copy, Item: Send>> {
+struct Si1<T: Iterator<Item: Copy, Item: Send>> {
     f: T,
 }
-struct SI2<T: Iterator<Item: Copy, Item: Copy>> {
+struct Si2<T: Iterator<Item: Copy, Item: Copy>> {
     f: T,
 }
-struct SI3<T: Iterator<Item: 'static, Item: 'static>> {
+struct Si3<T: Iterator<Item: 'static, Item: 'static>> {
     f: T,
 }
-struct SW1<T>
+struct Sw1<T>
 where
     T: Iterator<Item: Copy, Item: Send>,
 {
     f: T,
 }
-struct SW2<T>
+struct Sw2<T>
 where
     T: Iterator<Item: Copy, Item: Copy>,
 {
     f: T,
 }
-struct SW3<T>
+struct Sw3<T>
 where
     T: Iterator<Item: 'static, Item: 'static>,
 {
     f: T,
 }
 
-enum EI1<T: Iterator<Item: Copy, Item: Send>> {
+enum Ei1<T: Iterator<Item: Copy, Item: Send>> {
     V(T),
 }
-enum EI2<T: Iterator<Item: Copy, Item: Copy>> {
+enum Ei2<T: Iterator<Item: Copy, Item: Copy>> {
     V(T),
 }
-enum EI3<T: Iterator<Item: 'static, Item: 'static>> {
+enum Ei3<T: Iterator<Item: 'static, Item: 'static>> {
     V(T),
 }
-enum EW1<T>
+enum Ew1<T>
 where
     T: Iterator<Item: Copy, Item: Send>,
 {
     V(T),
 }
-enum EW2<T>
+enum Ew2<T>
 where
     T: Iterator<Item: Copy, Item: Copy>,
 {
     V(T),
 }
-enum EW3<T>
+enum Ew3<T>
 where
     T: Iterator<Item: 'static, Item: 'static>,
 {
     V(T),
 }
 
-union UI1<T: Iterator<Item: Copy, Item: Send>> {
+union Ui1<T: Iterator<Item: Copy, Item: Send>> {
     f: ManuallyDrop<T>,
 }
-union UI2<T: Iterator<Item: Copy, Item: Copy>> {
+union Ui2<T: Iterator<Item: Copy, Item: Copy>> {
     f: ManuallyDrop<T>,
 }
-union UI3<T: Iterator<Item: 'static, Item: 'static>> {
+union Ui3<T: Iterator<Item: 'static, Item: 'static>> {
     f: ManuallyDrop<T>,
 }
-union UW1<T>
+union Uw1<T>
 where
     T: Iterator<Item: Copy, Item: Send>,
 {
     f: ManuallyDrop<T>,
 }
-union UW2<T>
+union Uw2<T>
 where
     T: Iterator<Item: Copy, Item: Copy>,
 {
     f: ManuallyDrop<T>,
 }
-union UW3<T>
+union Uw3<T>
 where
     T: Iterator<Item: 'static, Item: 'static>,
 {
@@ -110,78 +110,78 @@ where
 {
 }
 
-fn frpit1() -> impl Iterator<Item: Copy, Item: Send> {
+fn rpit1() -> impl Iterator<Item: Copy, Item: Send> {
     iter::empty::<u32>()
 }
-fn frpit2() -> impl Iterator<Item: Copy, Item: Copy> {
+fn rpit2() -> impl Iterator<Item: Copy, Item: Copy> {
     iter::empty::<u32>()
 }
-fn frpit3() -> impl Iterator<Item: 'static, Item: 'static> {
+fn rpit3() -> impl Iterator<Item: 'static, Item: 'static> {
     iter::empty::<u32>()
 }
-fn fapit1(_: impl Iterator<Item: Copy, Item: Send>) {}
-fn fapit2(_: impl Iterator<Item: Copy, Item: Copy>) {}
-fn fapit3(_: impl Iterator<Item: 'static, Item: 'static>) {}
+fn apit1(_: impl Iterator<Item: Copy, Item: Send>) {}
+fn apit2(_: impl Iterator<Item: Copy, Item: Copy>) {}
+fn apit3(_: impl Iterator<Item: 'static, Item: 'static>) {}
 
-type TAI1<T: Iterator<Item: Copy, Item: Send>> = T;
-type TAI2<T: Iterator<Item: Copy, Item: Copy>> = T;
-type TAI3<T: Iterator<Item: 'static, Item: 'static>> = T;
-type TAW1<T>
+type Tait1<T: Iterator<Item: Copy, Item: Send>> = T;
+type Tait2<T: Iterator<Item: Copy, Item: Copy>> = T;
+type Tait3<T: Iterator<Item: 'static, Item: 'static>> = T;
+type Taw1<T>
 where
     T: Iterator<Item: Copy, Item: Send>,
 = T;
-type TAW2<T>
+type Taw2<T>
 where
     T: Iterator<Item: Copy, Item: Copy>,
 = T;
-type TAW3<T>
+type Taw3<T>
 where
     T: Iterator<Item: 'static, Item: 'static>,
 = T;
 
-trait TRI1<T: Iterator<Item: Copy, Item: Send>> {}
-trait TRI2<T: Iterator<Item: Copy, Item: Copy>> {}
-trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
-trait TRS1: Iterator<Item: Copy, Item: Send> {}
-trait TRS2: Iterator<Item: Copy, Item: Copy> {}
-trait TRS3: Iterator<Item: 'static, Item: 'static> {}
-trait TRW1<T>
+trait Tri1<T: Iterator<Item: Copy, Item: Send>> {}
+trait Tri2<T: Iterator<Item: Copy, Item: Copy>> {}
+trait Tri3<T: Iterator<Item: 'static, Item: 'static>> {}
+trait Trs1: Iterator<Item: Copy, Item: Send> {}
+trait Trs2: Iterator<Item: Copy, Item: Copy> {}
+trait Trs3: Iterator<Item: 'static, Item: 'static> {}
+trait Trw1<T>
 where
     T: Iterator<Item: Copy, Item: Send>,
 {
 }
-trait TRW2<T>
+trait Trw2<T>
 where
     T: Iterator<Item: Copy, Item: Copy>,
 {
 }
-trait TRW3<T>
+trait Trw3<T>
 where
     T: Iterator<Item: 'static, Item: 'static>,
 {
 }
-trait TRSW1
+trait Trsw1
 where
     Self: Iterator<Item: Copy, Item: Send>,
 {
 }
-trait TRSW2
+trait Trsw2
 where
     Self: Iterator<Item: Copy, Item: Copy>,
 {
 }
-trait TRSW3
+trait Trsw3
 where
     Self: Iterator<Item: 'static, Item: 'static>,
 {
 }
-trait TRA1 {
+trait Tra1 {
     type A: Iterator<Item: Copy, Item: Send>;
 }
-trait TRA2 {
+trait Tra2 {
     type A: Iterator<Item: Copy, Item: Copy>;
 }
-trait TRA3 {
+trait Tra3 {
     type A: Iterator<Item: 'static, Item: 'static>;
 }