-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
138 additions
and
76 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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(deprecated)] | ||
|
||
use pin_project::{pin_project, project}; | ||
|
||
#[pin_project] | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: Both initializer expression and pattern are replaceable, you need to split the initializer expression into separate let bindings to avoid ambiguity | ||
--> $DIR/ambiguous-let.rs:16:9 | ||
--> $DIR/ambiguous-let.rs:18:9 | ||
| | ||
16 | let Struct(x) = match Pin::new(&mut foo).project() { | ||
18 | let Struct(x) = match Pin::new(&mut foo).project() { | ||
| ^^^^^^^^^ |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![allow(deprecated)] | ||
|
||
mod argument { | ||
use pin_project::{pin_project, project}; | ||
|
||
|
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 |
---|---|---|
@@ -1,155 +1,155 @@ | ||
error: unexpected token: () | ||
--> $DIR/invalid.rs:10:18 | ||
--> $DIR/invalid.rs:12:18 | ||
| | ||
10 | #[project()] //~ ERROR unexpected token | ||
12 | #[project()] //~ ERROR unexpected token | ||
| ^^ | ||
|
||
error: unexpected token: (foo) | ||
--> $DIR/invalid.rs:17:18 | ||
--> $DIR/invalid.rs:19:18 | ||
| | ||
17 | #[project(foo)] //~ ERROR unexpected token | ||
19 | #[project(foo)] //~ ERROR unexpected token | ||
| ^^^^^ | ||
|
||
error: unexpected token: () | ||
--> $DIR/invalid.rs:24:18 | ||
--> $DIR/invalid.rs:26:18 | ||
| | ||
24 | #[project()] //~ ERROR unexpected token | ||
26 | #[project()] //~ ERROR unexpected token | ||
| ^^ | ||
|
||
error: unexpected token: (foo) | ||
--> $DIR/invalid.rs:33:18 | ||
--> $DIR/invalid.rs:35:18 | ||
| | ||
33 | #[project(foo)] //~ ERROR unexpected token | ||
35 | #[project(foo)] //~ ERROR unexpected token | ||
| ^^^^^ | ||
|
||
error: unexpected token: foo | ||
--> $DIR/invalid.rs:42:15 | ||
--> $DIR/invalid.rs:44:15 | ||
| | ||
42 | #[project(foo)] //~ ERROR unexpected token | ||
44 | #[project(foo)] //~ ERROR unexpected token | ||
| ^^^ | ||
|
||
error: duplicate #[project] attribute | ||
--> $DIR/invalid.rs:56:9 | ||
--> $DIR/invalid.rs:58:9 | ||
| | ||
56 | #[project] //~ ERROR duplicate #[project] attribute | ||
58 | #[project] //~ ERROR duplicate #[project] attribute | ||
| ^^^^^^^^^^ | ||
|
||
error: duplicate #[project_ref] attribute | ||
--> $DIR/invalid.rs:64:9 | ||
--> $DIR/invalid.rs:66:9 | ||
| | ||
64 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
66 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project_replace] attribute | ||
--> $DIR/invalid.rs:72:9 | ||
--> $DIR/invalid.rs:74:9 | ||
| | ||
72 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
74 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_ref` are mutually exclusive | ||
--> $DIR/invalid.rs:80:9 | ||
--> $DIR/invalid.rs:82:9 | ||
| | ||
80 | #[project_ref] //~ ERROR are mutually exclusive | ||
82 | #[project_ref] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:88:9 | ||
--> $DIR/invalid.rs:90:9 | ||
| | ||
88 | #[project_replace] //~ ERROR are mutually exclusive | ||
90 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project_ref` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:96:9 | ||
--> $DIR/invalid.rs:98:9 | ||
| | ||
96 | #[project_replace] //~ ERROR are mutually exclusive | ||
98 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_ref` are mutually exclusive | ||
--> $DIR/invalid.rs:104:9 | ||
--> $DIR/invalid.rs:106:9 | ||
| | ||
104 | #[project_ref] //~ ERROR are mutually exclusive | ||
106 | #[project_ref] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:112:9 | ||
--> $DIR/invalid.rs:114:9 | ||
| | ||
112 | #[project_replace] //~ ERROR are mutually exclusive | ||
114 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project_ref` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:120:9 | ||
--> $DIR/invalid.rs:122:9 | ||
| | ||
120 | #[project_replace] //~ ERROR are mutually exclusive | ||
122 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_ref` are mutually exclusive | ||
--> $DIR/invalid.rs:128:9 | ||
--> $DIR/invalid.rs:130:9 | ||
| | ||
128 | #[project_ref] //~ ERROR are mutually exclusive | ||
130 | #[project_ref] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:136:9 | ||
--> $DIR/invalid.rs:138:9 | ||
| | ||
136 | #[project_replace] //~ ERROR are mutually exclusive | ||
138 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: attributes `project_ref` and `project_replace` are mutually exclusive | ||
--> $DIR/invalid.rs:144:9 | ||
--> $DIR/invalid.rs:146:9 | ||
| | ||
144 | #[project_replace] //~ ERROR are mutually exclusive | ||
146 | #[project_replace] //~ ERROR are mutually exclusive | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project] attribute | ||
--> $DIR/invalid.rs:149:5 | ||
--> $DIR/invalid.rs:151:5 | ||
| | ||
149 | #[project] //~ ERROR duplicate #[project] attribute | ||
151 | #[project] //~ ERROR duplicate #[project] attribute | ||
| ^^^^^^^^^^ | ||
|
||
error: duplicate #[project_ref] attribute | ||
--> $DIR/invalid.rs:153:5 | ||
--> $DIR/invalid.rs:155:5 | ||
| | ||
153 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
155 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project_replace] attribute | ||
--> $DIR/invalid.rs:157:5 | ||
--> $DIR/invalid.rs:159:5 | ||
| | ||
157 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
159 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project] attribute | ||
--> $DIR/invalid.rs:161:5 | ||
--> $DIR/invalid.rs:163:5 | ||
| | ||
161 | #[project] //~ ERROR duplicate #[project] attribute | ||
163 | #[project] //~ ERROR duplicate #[project] attribute | ||
| ^^^^^^^^^^ | ||
|
||
error: duplicate #[project_ref] attribute | ||
--> $DIR/invalid.rs:165:5 | ||
--> $DIR/invalid.rs:167:5 | ||
| | ||
165 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
167 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project_replace] attribute | ||
--> $DIR/invalid.rs:169:5 | ||
--> $DIR/invalid.rs:171:5 | ||
| | ||
169 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
171 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project] attribute | ||
--> $DIR/invalid.rs:177:9 | ||
--> $DIR/invalid.rs:179:9 | ||
| | ||
177 | #[project] //~ ERROR duplicate #[project] attribute | ||
179 | #[project] //~ ERROR duplicate #[project] attribute | ||
| ^^^^^^^^^^ | ||
|
||
error: duplicate #[project_ref] attribute | ||
--> $DIR/invalid.rs:181:9 | ||
--> $DIR/invalid.rs:183:9 | ||
| | ||
181 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
183 | #[project_ref] //~ ERROR duplicate #[project_ref] attribute | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: duplicate #[project_replace] attribute | ||
--> $DIR/invalid.rs:185:9 | ||
--> $DIR/invalid.rs:187:9 | ||
| | ||
185 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
187 | #[project_replace] //~ ERROR duplicate #[project_replace] attribute | ||
| ^^^^^^^^^^^^^^^^^^ |
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
Oops, something went wrong.