Skip to content

Commit e9d5d11

Browse files
committed
remove feature(trait_upcasting) from tests and bless them
1 parent a970a0d commit e9d5d11

File tree

72 files changed

+67
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+67
-275
lines changed

tests/codegen/vtable-upcast.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ compile-flags: -C no-prepopulate-passes -Copt-level=0
33

44
#![crate_type = "lib"]
5-
#![feature(trait_upcasting)]
65

76
pub trait Base {
87
fn base(&self);

tests/crashes/131886.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ known-bug: #131886
22
//@ compile-flags: -Zvalidate-mir --crate-type=lib
3-
#![feature(trait_upcasting, type_alias_impl_trait)]
3+
#![feature(type_alias_impl_trait)]
44

55
type Tait = impl Sized;
66

tests/ui/codegen/issue-99551.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ build-pass
2-
#![feature(trait_upcasting)]
32

43
pub trait A {}
54
pub trait B {}

tests/ui/dyn-star/no-unsize-coerce-dyn-trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#![feature(dyn_star, trait_upcasting)]
2-
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
1+
#![expect(incomplete_features)]
2+
#![feature(dyn_star)]
33

44
trait A: B {}
55
trait B {}
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
2-
--> $DIR/no-unsize-coerce-dyn-trait.rs:1:12
3-
|
4-
LL | #![feature(dyn_star, trait_upcasting)]
5-
| ^^^^^^^^
6-
|
7-
= note: see issue #102425 <https://github.com/rust-lang/rust/issues/102425> for more information
8-
= note: `#[warn(incomplete_features)]` on by default
9-
101
error[E0308]: mismatched types
112
--> $DIR/no-unsize-coerce-dyn-trait.rs:11:26
123
|
@@ -18,6 +9,6 @@ LL | let y: Box<dyn* B> = x;
189
= note: expected struct `Box<dyn* B>`
1910
found struct `Box<dyn* A>`
2011

21-
error: aborting due to 1 previous error; 1 warning emitted
12+
error: aborting due to 1 previous error
2213

2314
For more information about this error, try `rustc --explain E0308`.

tests/ui/dyn-star/upcast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ known-bug: #104800
22

3-
#![feature(dyn_star, trait_upcasting)]
3+
#![feature(dyn_star)]
44

55
trait Foo: Bar {
66
fn hello(&self);

tests/ui/dyn-star/upcast.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
22
--> $DIR/upcast.rs:3:12
33
|
4-
LL | #![feature(dyn_star, trait_upcasting)]
4+
LL | #![feature(dyn_star)]
55
| ^^^^^^^^
66
|
77
= note: see issue #102425 <https://github.com/rust-lang/rust/issues/102425> for more information

tests/ui/feature-gates/feature-gate-trait_upcasting.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/ui/feature-gates/feature-gate-trait_upcasting.stderr

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/ui/impl-trait/unsized_coercion5.old.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the size for values of type `impl Trait + ?Sized` cannot be known at compilation time
2-
--> $DIR/unsized_coercion5.rs:17:32
2+
--> $DIR/unsized_coercion5.rs:15:32
33
|
44
LL | let y: Box<dyn Send> = x as Box<dyn Trait + Send>;
55
| ^ doesn't have a size known at compile-time

0 commit comments

Comments
 (0)