Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Nov 24, 2022
1 parent 8f79fc2 commit b60b76c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/test/ui/dyn-star/dispatch-on-pin-mut.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// build-pass
// run-pass
// edition:2021
// check-run-results

#![feature(dyn_star)]
//~^ WARN the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/dyn-star/dispatch-on-pin-mut.run.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value: 1
2 changes: 1 addition & 1 deletion src/test/ui/dyn-star/dispatch-on-pin-mut.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/dispatch-on-pin-mut.rs:4:12
--> $DIR/dispatch-on-pin-mut.rs:5:12
|
LL | #![feature(dyn_star)]
| ^^^^^^^^
Expand Down
5 changes: 3 additions & 2 deletions src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// check-pass
// run-pass
// check-run-results

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

trait AddOne {
fn add1(&mut self) -> usize;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.run.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
43
44
11 changes: 11 additions & 0 deletions src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/dont-unsize-coerce-dyn-star.rs:4:12
|
LL | #![feature(dyn_star)]
| ^^^^^^^^
|
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= note: `#[warn(incomplete_features)]` on by default

warning: 1 warning emitted

2 changes: 1 addition & 1 deletion src/test/ui/dyn-star/upcast.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// known-bug: unknown
// known-bug: #104800

#![feature(dyn_star, trait_upcasting)]

Expand Down

0 comments on commit b60b76c

Please sign in to comment.