-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #133358 - compiler-errors:pin-coerce, r=eholk
Don't type error if we fail to coerce `Pin<T>` because it doesnt contain a ref Fixes #133222. Also moves some tests into a directory for better bookkeeping. r? eholk or re-roll
- Loading branch information
Showing
14 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/ui/async-await/pin-ergonomics/coerce-non-pointer-pin.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//@ check-pass | ||
|
||
#![feature(pin_ergonomics)] | ||
//~^ WARN the feature `pin_ergonomics` is incomplete | ||
|
||
use std::pin::Pin; | ||
|
||
fn main() { | ||
let _: Pin<Box<()>> = Box::pin(()); | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/ui/async-await/pin-ergonomics/coerce-non-pointer-pin.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
warning: the feature `pin_ergonomics` is incomplete and may not be safe to use and/or cause compiler crashes | ||
--> $DIR/coerce-non-pointer-pin.rs:3:12 | ||
| | ||
LL | #![feature(pin_ergonomics)] | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
= note: see issue #130494 <https://github.com/rust-lang/rust/issues/130494> for more information | ||
= note: `#[warn(incomplete_features)]` on by default | ||
|
||
warning: 1 warning emitted | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...s/ui/async-await/pin-reborrow-once.stderr → ...await/pin-ergonomics/reborrow-once.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../ui/async-await/pin-sugar-no-const.stderr → ...wait/pin-ergonomics/sugar-no-const.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.