Skip to content

Commit b60b76c

Browse files
Adjust tests
1 parent 8f79fc2 commit b60b76c

7 files changed

+21
-5
lines changed

src/test/ui/dyn-star/dispatch-on-pin-mut.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// build-pass
1+
// run-pass
22
// edition:2021
3+
// check-run-results
34

45
#![feature(dyn_star)]
56
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
value: 1

src/test/ui/dyn-star/dispatch-on-pin-mut.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
2-
--> $DIR/dispatch-on-pin-mut.rs:4:12
2+
--> $DIR/dispatch-on-pin-mut.rs:5:12
33
|
44
LL | #![feature(dyn_star)]
55
| ^^^^^^^^

src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// check-pass
1+
// run-pass
2+
// check-run-results
23

34
#![feature(dyn_star)]
4-
#![allow(incomplete_features)]
5+
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
56

67
trait AddOne {
78
fn add1(&mut self) -> usize;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
43
2+
44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/dont-unsize-coerce-dyn-star.rs:4:12
3+
|
4+
LL | #![feature(dyn_star)]
5+
| ^^^^^^^^
6+
|
7+
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+

src/test/ui/dyn-star/upcast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// known-bug: unknown
1+
// known-bug: #104800
22

33
#![feature(dyn_star, trait_upcasting)]
44

0 commit comments

Comments
 (0)