Home
last modified time | relevance | path

Searched refs:pinned_drop (Results 1 – 25 of 31) sorted by relevance

12

/external/rust/crates/pin-project/tests/ui/pinned_drop/
Dinvalid.rs2 use pin_project::{pin_project, pinned_drop};
8 #[pinned_drop(foo)] //~ ERROR unexpected token
16 #[pinned_drop()] // Ok
23 use pin_project::{pin_project, pinned_drop};
28 #[pinned_drop]
29 #[pinned_drop] //~ ERROR duplicate #[pinned_drop] attribute
36 use pin_project::{pin_project, pinned_drop};
41 #[pinned_drop]
47 #[pinned_drop]
50 #[pinned_drop]
[all …]
Dself.rs2 use pin_project::{pin_project, pinned_drop};
10 #[pinned_drop]
26 use pin_project::{pin_project, pinned_drop};
34 #[pinned_drop]
47 #[pinned_drop]
Dinvalid.stderr4 8 | #[pinned_drop(foo)] //~ ERROR unexpected token
7 error: duplicate #[pinned_drop] attribute
10 29 | #[pinned_drop] //~ ERROR duplicate #[pinned_drop] attribute
13 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
19 error: #[pinned_drop] may only be used on implementation for the `PinnedDrop` trait
121 error: method `pinned_drop` is not a member of trait `PinnedDrop
124 203 | fn pinned_drop(self: Pin<&mut Self>) {} //~ ERROR method `pinned_drop` is not a membe…
Dpinned-drop-no-attr-arg.rs1 use pin_project::{pin_project, pinned_drop};
10 #[pinned_drop]
Dcall-drop-inner.rs1 use pin_project::{pin_project, pinned_drop};
9 #[pinned_drop]
Dunsafe-call.rs1 use pin_project::{pin_project, pinned_drop};
10 #[pinned_drop]
Dconditional-drop-impl.rs1 use pin_project::{pin_project, pinned_drop};
21 #[pinned_drop]
Dcall-drop-inner.stderr12 9 | #[pinned_drop]
/external/rust/crates/pin-project/tests/
Dpinned_drop.rs5 use pin_project::{pin_project, pinned_drop};
16 #[pinned_drop] in safe_project()
43 #[pinned_drop] in self_call()
63 #[pinned_drop] in self_ty()
83 #[pinned_drop] in self_ty()
106 #[pinned_drop] in self_ty()
138 #[pinned_drop] in self_inside_macro_containing_fn()
159 #[pinned_drop] in self_inside_macro_def()
180 #[pinned_drop] in self_arg_inside_macro_call()
221 #[pinned_drop] in self_ty_inside_macro_call()
[all …]
Dpin_project.rs13 use pin_project::{pin_project, pinned_drop, UnsafeUnpin};
356 #[pinned_drop] in overlapping_lifetime_names()
384 #[pinned_drop] in combine()
397 #[pinned_drop] in combine()
594 #[pinned_drop] in dst()
605 #[pinned_drop] in dst()
654 #[pinned_drop] in dst()
662 #[pinned_drop] in dst()
Dlint.rs104 #[::pin_project::pinned_drop]
113 #[::pin_project::pinned_drop]
134 #[::pin_project::pinned_drop]
324 #[::pin_project::pinned_drop]
333 #[::pin_project::pinned_drop]
354 #[::pin_project::pinned_drop]
/external/rust/crates/pin-project/examples/
DREADME.md19 ### Manual implementation of `Drop` by `#[pinned_drop]`
21 - [example](pinned_drop.rs)
22 - [generated code](pinned_drop-expanded.rs)
23 - [`#[pinned_drop]` documentation](https://docs.rs/pin-project/1/pin_project/attr.pinned_drop.html)
Dpinned_drop.rs7 use pin_project::{pin_project, pinned_drop};
16 #[pinned_drop]
Dpinned_drop-expanded.rs30 use pin_project::{pin_project, pinned_drop};
/external/rust/crates/pin-project-internal/src/
Dlib.rs23 mod pinned_drop; module
568 pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream { in pinned_drop() function
570 pinned_drop::attribute(&args.into(), input).into() in pinned_drop()
/external/rust/crates/pin-project/tests/expand/pinned_drop/
Dtuple_struct.rs1 use pin_project::{pin_project, pinned_drop};
7 #[pinned_drop]
Dstruct.rs1 use pin_project::{pin_project, pinned_drop};
11 #[pinned_drop]
Denum.rs1 use pin_project::{pin_project, pinned_drop};
15 #[pinned_drop]
/external/rust/crates/pin-project-internal/src/pin_project/
Dargs.rs63 pub(super) pinned_drop: Option<Span>, field
103 let mut pinned_drop = None; in parse() localVariable
126 if pinned_drop.replace(token.span()).is_some() { in parse()
192 if let Some(span) = pinned_drop { in parse()
217 Ok(Self { pinned_drop, unpin_impl, project, project_ref, project_replace }) in parse()
/external/rust/crates/pin-project/tests/ui/pin_project/
Dpacked_sneaky-1.rs2 use pin_project::{pin_project, pinned_drop, UnsafeUnpin};
28 #[pinned_drop]
Dconflict-drop.rs1 use pin_project::{pin_project, pinned_drop};
22 #[pinned_drop]
/external/rust/crates/pin-project/tests/include/
Dbasic-safe-part.rs56 #[::pin_project::pinned_drop]
65 #[::pin_project::pinned_drop]
86 #[::pin_project::pinned_drop]
/external/rust/crates/pin-project/
DCHANGELOG.md199 - [Support `Self` in more syntax positions inside `#[pinned_drop]` impl.](https://github.com/taiki-…
230 - [Fixed an issue that users can call internal function generated by `#[pinned_drop]`.](https://git…
280 …- [Suppress `clippy::needless_pass_by_value` lint in generated code of `#[pinned_drop]`.](https://…
298 - [Suppress `clippy::needless_pass_by_value` lint in generated code of `#[pinned_drop]`.](https://g…
310 - [Support `Self` and `self` in more syntax positions inside `#[pinned_drop]` impl.](https://github…
326 - [Fixed use of `Self` in expression position inside `#[pinned_drop]` impl.](https://github.com/tai…
378 - Drop impls must be specified with `#[pinned_drop]` instead of via a normal `Drop` impl. ([#18](ht…
420 - [Changed #[pinned_drop] to trait implementation.](https://github.com/taiki-e/pin-project/pull/86)
423 #[pinned_drop]
495 - Drop impls must be specified with `#[pinned_drop]` instead of via a normal `Drop` impl.
/external/rust/crates/pin-project/src/
Dlib.rs88 pub use pin_project_internal::pinned_drop;
/external/rust/crates/pin-project-lite/
DREADME.md105 pin-project supports this by [`#[pinned_drop]`][pinned-drop].
118 [pinned-drop]: https://docs.rs/pin-project/1/pin_project/attr.pin_project.html#pinned_drop

12