/external/rust/crates/pin-project/tests/ui/pin_project/ |
D | invalid.rs | 94 #[pin_project(UnsafeUnpin,,)] //~ ERROR expected identifier 100 #[pin_project(,UnsafeUnpin)] //~ ERROR expected identifier 112 #[pin_project(UnsafeUnpin, UnsafeUnpin)] //~ ERROR duplicate `UnsafeUnpin` argument 118 #[pin_project(PinnedDrop, UnsafeUnpin, UnsafeUnpin)] //~ ERROR duplicate `UnsafeUnpin` argument 121 …#[pin_project(PinnedDrop, UnsafeUnpin, PinnedDrop, UnsafeUnpin)] //~ ERROR duplicate `PinnedDrop` … 148 …#[pin_project(project_replace, UnsafeUnpin, PinnedDrop)] //~ ERROR arguments `PinnedDrop` and `pro… 151 …#[pin_project(UnsafeUnpin, !Unpin)] //~ ERROR arguments `UnsafeUnpin` and `!Unpin` are mutually ex… 154 …#[pin_project(!Unpin, PinnedDrop, UnsafeUnpin)] //~ ERROR arguments `UnsafeUnpin` and `!Unpin` are…
|
D | impl-unsafe-unpin.stderr | 1 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Foo<_, _>`: 7 10 | unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {} 12 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Bar<_, _>`: 18 19 | unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {} 23 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Baz<_, _>`: 29 28 | unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}
|
D | invalid.stderr | 76 94 | #[pin_project(UnsafeUnpin,,)] //~ ERROR expected identifier 88 100 | #[pin_project(,UnsafeUnpin)] //~ ERROR expected identifier 103 error: duplicate `UnsafeUnpin` argument 106 112 | #[pin_project(UnsafeUnpin, UnsafeUnpin)] //~ ERROR duplicate `UnsafeUnpin` argument 115 error: duplicate `UnsafeUnpin` argument 118 118 | #[pin_project(PinnedDrop, UnsafeUnpin, UnsafeUnpin)] //~ ERROR duplicate `UnsafeUnpin` ar… 124 121 | #[pin_project(PinnedDrop, UnsafeUnpin, PinnedDrop, UnsafeUnpin)] //~ ERROR duplicate `Pin… 172 148 | #[pin_project(project_replace, UnsafeUnpin, PinnedDrop)] //~ ERROR arguments `PinnedDrop`… 175 error: arguments `UnsafeUnpin` and `!Unpin` are mutually exclusive 178 151 | #[pin_project(UnsafeUnpin, !Unpin)] //~ ERROR arguments `UnsafeUnpin` and `!Unpin` are mu… [all …]
|
D | impl-unsafe-unpin.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 10 unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {} 19 unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {} 28 unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}
|
D | packed_sneaky-1.rs | 2 use pin_project::{pin_project, pinned_drop, UnsafeUnpin}; 12 #[pin_project(UnsafeUnpin)] //~ ERROR may not be used on #[repr(packed)] types 19 unsafe impl UnsafeUnpin for C {}
|
/external/rust/crates/pin-project/tests/ |
D | unsafe_unpin.rs | 9 use pin_project::{pin_project, UnsafeUnpin}; 11 #[pin_project(UnsafeUnpin)] 18 unsafe impl<T: Unpin, U> UnsafeUnpin for Blah<T, U> {} 25 #[pin_project(UnsafeUnpin)] 34 unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for OverlappingLifetimeNames<'_, T, U> {} 43 #[pin_project(UnsafeUnpin)] in trivial_bounds()
|
D | pin_project.rs | 13 use pin_project::{pin_project, pinned_drop, UnsafeUnpin}; 361 #[pin_project(UnsafeUnpin)] in overlapping_lifetime_names() 367 unsafe impl UnsafeUnpin for UnsafeUnpinStruct<'_> {} in overlapping_lifetime_names() 378 #[pin_project(PinnedDrop, UnsafeUnpin)] in combine() 389 unsafe impl<T: Unpin> UnsafeUnpin for PinnedDropWithUnsafeUnpin<T> {} in combine() 402 #[pin_project(UnsafeUnpin, project_replace)] in combine() 408 unsafe impl<T: Unpin> UnsafeUnpin for UnsafeUnpinWithReplace<T> {} in combine() 578 #[pin_project(UnsafeUnpin)] in dst() 583 #[pin_project(UnsafeUnpin)] in dst() 645 #[pin_project(UnsafeUnpin)] in dst() [all …]
|
D | lint.rs | 187 #[::pin_project::pin_project(UnsafeUnpin)] 195 #[::pin_project::pin_project(UnsafeUnpin)] 200 UnsafeUnpin, 244 ::pin_project::UnsafeUnpin for UnsafeUnpinStruct<T, U> 248 ::pin_project::UnsafeUnpin for UnsafeUnpinTupleStruct<T, U> 252 ::pin_project::UnsafeUnpin for UnsafeUnpinEnum<T, U> 407 #[::pin_project::pin_project(UnsafeUnpin)] 415 #[::pin_project::pin_project(UnsafeUnpin)] 420 UnsafeUnpin,
|
/external/rust/crates/pin-project/src/ |
D | lib.rs.orig | 89 /// This trait is used in conjunction with the `UnsafeUnpin` argument to 107 /// To help highlight this unsafety, the `UnsafeUnpin` trait is provided. 110 /// your `UnsafeUnpin` impl. However, this trait is `unsafe` - since your type 112 /// you must be sure that your `UnsafeUnpin` impls follows all of 115 /// Note that if you specify `#[pin_project(UnsafeUnpin)]`, but do *not* 116 /// provide an impl of `UnsafeUnpin`, your type will never implement [`Unpin`]. 125 /// An `UnsafeUnpin` impl which, in addition to requiring that structurally 129 /// use pin_project::{pin_project, UnsafeUnpin}; 131 /// #[pin_project(UnsafeUnpin)] 138 /// unsafe impl<K, V> UnsafeUnpin for Struct<K, V> where K: Unpin + Clone {} [all …]
|
D | lib.rs | 148 pub unsafe trait UnsafeUnpin {} trait 165 use super::UnsafeUnpin; 248 unsafe impl<T: ?Sized> UnsafeUnpin for Wrapper<'_, T> where T: UnsafeUnpin {}
|
/external/rust/crates/pin-project/tests/ui/not_unpin/ |
D | impl-unsafe-unpin.stderr | 1 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Foo<_, _>`: 7 10 | unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {} 12 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Bar<_, _>`: 18 19 | unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {} 23 error[E0119]: conflicting implementations of trait `pin_project::UnsafeUnpin` for type `Baz<_, _>`: 29 28 | unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}
|
D | impl-unsafe-unpin.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 10 unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {} 19 unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {} 28 unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {}
|
/external/rust/crates/pin-project/tests/ui/unsafe_unpin/ |
D | conflict-unpin.stderr | 4 3 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119 10 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje… 15 12 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119 21 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje… 26 21 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119 32 …= note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_proje…
|
D | conflict-unpin.rs | 3 #[pin_project(UnsafeUnpin)] //~ ERROR E0119 12 #[pin_project(UnsafeUnpin)] //~ ERROR E0119 21 #[pin_project(UnsafeUnpin)] //~ ERROR E0119
|
/external/rust/crates/pin-project/tests/expand/unsafe_unpin/ |
D | tuple_struct.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 3 #[pin_project(UnsafeUnpin)] 6 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | struct.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 3 #[pin_project(UnsafeUnpin)] 10 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | enum.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 3 #[pin_project(UnsafeUnpin, project = EnumProj, project_ref = EnumProjRef)] 14 unsafe impl<T: Unpin, U> UnsafeUnpin for Enum<T, U> {}
|
D | tuple_struct.expanded.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 2 #[pin(__private(UnsafeUnpin))] 74 ::pin_project::__private::Wrapper<'pin, Self>: ::pin_project::UnsafeUnpin 86 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | struct.expanded.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 2 #[pin(__private(UnsafeUnpin))] 86 ::pin_project::__private::Wrapper<'pin, Self>: ::pin_project::UnsafeUnpin 98 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | enum.expanded.rs | 1 use pin_project::{pin_project, UnsafeUnpin}; 2 # [pin (__private (UnsafeUnpin , project = EnumProj , project_ref = EnumProjRef))] 103 ::pin_project::__private::Wrapper<'pin, Self>: ::pin_project::UnsafeUnpin 115 unsafe impl<T: Unpin, U> UnsafeUnpin for Enum<T, U> {}
|
/external/rust/crates/pin-project/examples/ |
D | unsafe_unpin.rs | 5 use pin_project::{pin_project, UnsafeUnpin}; 7 #[pin_project(UnsafeUnpin)] 14 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | unsafe_unpin-expanded.rs | 23 use pin_project::{pin_project, UnsafeUnpin}; 86 ::pin_project::__private::Wrapper<'pin, Self>: ::pin_project::UnsafeUnpin 105 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
|
D | README.md | 13 ### Manual implementation of `Unpin` by `UnsafeUnpin` 17 - [`UnsafeUnpin` documentation](https://docs.rs/pin-project/1/pin_project/trait.UnsafeUnpin.html)
|
/external/rust/crates/pin-project/tests/include/ |
D | basic.rs | 4 ::pin_project::UnsafeUnpin for UnsafeUnpinStruct<T, U> 8 ::pin_project::UnsafeUnpin for UnsafeUnpinTupleStruct<T, U> 12 ::pin_project::UnsafeUnpin for UnsafeUnpinEnum<T, U>
|
D | basic-safe-part.rs | 139 #[::pin_project::pin_project(UnsafeUnpin)] 147 #[::pin_project::pin_project(UnsafeUnpin)] 152 UnsafeUnpin,
|