Home
last modified time | relevance | path

Searched refs:project_replace (Results 1 – 25 of 50) sorted by relevance

12

/external/rust/crates/pin-project/tests/ui/pin_project/
Dinvalid.rs133 …#[pin_project(project_replace = A, project_replace = B)] //~ ERROR duplicate `project_replace` arg…
136 …#[pin_project(project_replace, project_replace = B)] //~ ERROR duplicate `project_replace` argument
139 …#[pin_project(project_replace = A, project_replace)] //~ ERROR duplicate `project_replace` argument
142 #[pin_project(project_replace = A)] // Ok
145 …#[pin_project(PinnedDrop, project_replace)] //~ ERROR arguments `PinnedDrop` and `project_replace`…
148 …#[pin_project(project_replace, UnsafeUnpin, PinnedDrop)] //~ ERROR arguments `PinnedDrop` and `pro…
181 #[pin_project(project_replace)] // Ok
184 …#[pin_project(project_replace = )] //~ ERROR expected `project_replace = <identifier>`, found `pro…
187 #[pin_project(project_replace = !)] //~ ERROR expected identifier
190 …#[pin_project(project_replace)] //~ ERROR `project_replace` argument requires a value when used on…
[all …]
Dinvalid.stderr67 error: `Replace` argument was removed, use `project_replace` argument instead
70 91 | #[pin_project(Replace)] //~ ERROR `Replace` argument was removed, use `project_replace` ar…
145 error: duplicate `project_replace` argument
148 133 | #[pin_project(project_replace = A, project_replace = B)] //~ ERROR duplicate `project_rep…
151 error: duplicate `project_replace` argument
154 136 | #[pin_project(project_replace, project_replace = B)] //~ ERROR duplicate `project_replace
157 error: duplicate `project_replace` argument
160 139 | #[pin_project(project_replace = A, project_replace)] //~ ERROR duplicate `project_replace
163 error: arguments `PinnedDrop` and `project_replace` are mutually exclusive
166 145 | #[pin_project(PinnedDrop, project_replace)] //~ ERROR arguments `PinnedDrop` and `project…
[all …]
Dproject_replace_unsized.stderr4 3 | #[pin_project(project_replace)] //~ ERROR E0277
13 3 | #[pin_project(&project_replace)] //~ ERROR E0277
19 3 | #[pin_project(project_replace)] //~ ERROR E0277
39 8 | #[pin_project(project_replace)] //~ ERROR E0277
48 8 | #[pin_project(&project_replace)] //~ ERROR E0277
54 8 | #[pin_project(project_replace)] //~ ERROR E0277
Dproject_replace_unsized.rs3 #[pin_project(project_replace)] //~ ERROR E0277
8 #[pin_project(project_replace)] //~ ERROR E0277
Dproject_replace_unsized_fn_params.rs5 #[pin_project(project_replace)] //~ ERROR E0277
10 #[pin_project(project_replace)] //~ ERROR E0277
Dvisibility.rs10 #[pin_project(project = RProj, project_ref = RProjRef, project_replace = RProjOwn)]
40 #[pin_project(project = RProj, project_ref = RProjRef, project_replace = RProjOwn)]
/external/rust/crates/pin-project/tests/
Dlint.rs139 #[::pin_project::pin_project(project_replace)]
150 project_replace = ReplaceStructNamedProjOwn,
159 #[::pin_project::pin_project(project_replace)]
166 project_replace = ReplaceTupleStructNamedProjOwn,
174 project_replace = ReplaceEnumProjOwn,
359 #[::pin_project::pin_project(project_replace)]
370 project_replace = ReplaceStructNamedProjOwn,
379 #[::pin_project::pin_project(project_replace)]
386 project_replace = ReplaceTupleStructNamedProjOwn,
394 project_replace = ReplaceEnumProjOwn,
[all …]
Dpin_project.rs20 project_replace = StructProjOwn, in projection()
53 let StructProjOwn { f1, f2 } = s.as_mut().project_replace(Struct { f1: 3, f2: 4 }); in projection()
61 #[pin_project(project_replace)] in projection()
72 #[pin_project(project = EnumProj, project_ref = EnumProjRef, project_replace = EnumProjOwn)] in projection()
132 #[pin_project(project = EnumProj, project_ref = EnumProjRef, project_replace = EnumProjOwn)] in enum_project_set()
169 #[pin_project(project = EnumProj, project_ref = EnumProjRef, project_replace = EnumProjOwn)] in where_clause()
180 #[pin_project(project_replace)] in where_clause_and_associated_type_field()
190 #[pin_project(project_replace)] in where_clause_and_associated_type_field()
200 #[pin_project(project_replace)] in where_clause_and_associated_type_field()
212 #[pin_project(project_replace)] in where_clause_and_associated_type_field()
[all …]
Ddrop_order.rs20 #[pin_project(project_replace)]
28 #[pin_project(project_replace)]
34 #[pin_project(project_replace)]
37 #[pin_project(project_replace)]
40 #[pin_project(project_replace = EnumProj)]
68 let _z = y.project_replace(StructPinned { f1: D(&c, 3), f2: D(&c, 4) }); in struct_pinned()
82 let _z = y.project_replace(StructUnpinned { f1: D(&c, 3), f2: D(&c, 4) }); in struct_unpinned()
96 let _z = y.project_replace(TuplePinned(D(&c, 3), D(&c, 4))); in tuple_pinned()
110 let _z = y.project_replace(TupleUnpinned(D(&c, 3), D(&c, 4))); in tuple_unpinned()
124 let _z = y.project_replace(Enum::StructPinned { f1: D(&c, 3), f2: D(&c, 4) }); in enum_struct()
[all …]
Dcfg.rs22 #[pin_project(project_replace)] in cfg()
36 #[pin_project(project_replace)] in cfg()
50 #[pin_project(project_replace)] in cfg()
69 project_replace = VariantProjOwn, in cfg()
91 project_replace = FieldProjOwn, in cfg()
129 #[pin_project(project_replace)] in cfg_attr()
145 #[pin_project(project_replace)] in cfg_attr()
178 #[pin_project(project_replace)] in cfg_attr_any_packed()
/external/rust/crates/pin-project-lite/tests/
Ddrop_order.rs22 #[project_replace = StructPinnedProjReplace]
34 #[project_replace = StructUnpinnedProjReplace]
42 #[project_replace = EnumProjReplace]
69 let _z = y.project_replace(StructPinned { f1: D(&c, 3), f2: D(&c, 4) }); in struct_pinned()
83 let _z = y.project_replace(StructUnpinned { f1: D(&c, 3), f2: D(&c, 4) }); in struct_unpinned()
97 let _z = y.project_replace(Enum::StructPinned { f1: D(&c, 3), f2: D(&c, 4) }); in enum_struct()
108 let _z = y.project_replace(Enum::StructUnpinned { f1: D(&c, 3), f2: D(&c, 4) }); in enum_struct()
118 #[project_replace = SProjReplace] in project_replace_panic()
140 .project_replace(S { pinned: D(&mut c, false), unpinned: D(&mut d, false) }); in project_replace_panic()
156 .project_replace(S { pinned: D(&mut c, false), unpinned: D(&mut d, false) }); in project_replace_panic()
/external/rust/crates/pin-project/examples/
DREADME.md25 ### `project_replace()` method
27 - [example](project_replace.rs)
28 - [generated code](project_replace-expanded.rs)
29 - [`project_replace()` documentation](https://docs.rs/pin-project/1/pin_project/attr.pin_project.ht…
/external/rust/crates/pin-project/tests/include/
Dbasic-safe-part.rs91 #[::pin_project::pin_project(project_replace)]
102 project_replace = ReplaceStructNamedProjOwn,
111 #[::pin_project::pin_project(project_replace)]
118 project_replace = ReplaceTupleStructNamedProjOwn,
126 project_replace = ReplaceEnumProjOwn,
/external/rust/crates/pin-project-internal/src/pin_project/
Dderive.rs168 project_replace: ProjReplace, field
179 let Args { pinned_drop, unpin_impl, project, project_ref, project_replace } = in new()
182 if let Some(name) = [project.as_ref(), project_ref.as_ref(), project_replace.ident()] in new()
206 let own_ident = project_replace in new()
217 project_replace, in new()
380 if cx.project_replace.span().is_some() { in parse_struct()
381 generate.extend(cx.project_replace.ident().is_some(), quote! { in parse_struct()
410 if let ProjReplace::Unnamed { span } = &cx.project_replace {
457 if cx.project_replace.ident().is_some() {
947 let mut project_replace = cx.project_replace.span().map(|span| { in make_proj_impl() localVariable
[all …]
Dargs.rs71 pub(super) project_replace: ProjReplace, field
200 let project_replace = match (project_replace_span, project_replace_value) { in parse() localVariable
217 Ok(Self { pinned_drop, unpin_impl, project, project_ref, project_replace }) in parse()
/external/rust/crates/futures-util/src/
Dunfold_state.rs8 #[project_replace = UnfoldStateProjReplace]
32 UnfoldState::Value { .. } => match self.project_replace(UnfoldState::Empty) { in take_value()
/external/rust/crates/futures-util/src/future/future/
Dmap.rs12 #[project_replace = MapProjReplace]
56 match self.project_replace(Map::Complete) { in poll()
/external/rust/crates/pin-project/
DCHANGELOG.md39 - [Remove deprecated `#[project]`, `#[project_ref]`, and `#[project_replace]` attributes.](https://…
60 …]` attribute.](https://github.com/taiki-e/pin-project/pull/266) Use `project_replace` argument ins…
72 - [Fix drop order of pinned fields in `project_replace`.](https://github.com/taiki-e/pin-project/pu…
78 - [Remove deprecated `#[project]`, `#[project_ref]`, and `#[project_replace]` attributes.](https://…
99 …]` attribute.](https://github.com/taiki-e/pin-project/pull/266) Use `project_replace` argument ins…
115 - [Fix drop order of pinned fields in `project_replace`.](https://github.com/taiki-e/pin-project/pu…
140 - [Deprecated `#[project]`, `#[project_ref]`, and `#[project_replace]` attributes due to some unfix…
169 - [You can now use `project_replace` argument without Replace argument.](https://github.com/taiki-e…
173 - #[pin_project(Replace, project_replace = EnumProjOwn)]
174 + #[pin_project(project_replace = EnumProjOwn)]
[all …]
/external/rust/crates/pin-project/tests/expand/naming/
Denum-own.expanded.rs2 # [pin (__private (project_replace = ProjOwn))]
43 fn project_replace( in project_replace() method
Dtuple_struct-own.rs3 #[pin_project(project_replace = ProjOwn)]
Dstruct-own.rs3 #[pin_project(project_replace = ProjOwn)]
/external/rust/crates/pin-project/tests/expand/project_replace/
Denum.expanded.rs2 # [pin (__private (project_replace = EnumProjOwn))]
43 fn project_replace( in project_replace() method
Dtuple_struct.rs3 #[pin_project(project_replace)]
Dstruct.rs3 #[pin_project(project_replace)]
/external/rust/crates/pin-project/tests/expand/multifields/
Dtuple_struct.rs3 #[pin_project(project_replace)]

12