Home
last modified time | relevance | path

Searched refs:UnsafeUnpin (Results 1 – 25 of 67) sorted by relevance

123

/external/rust/crates/pin-project/tests/ui/pin_project/
Dinvalid.rs94 #[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…
Dimpl-unsafe-unpin.stderr1 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> {}
Dinvalid.stderr76 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 …]
Dimpl-unsafe-unpin.rs1 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> {}
Dpacked_sneaky-1.rs2 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/
Dunsafe_unpin.rs9 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()
Dpin_project.rs13 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 …]
Dlint.rs187 #[::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/
Dlib.rs.orig89 /// 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 …]
Dlib.rs148 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/
Dimpl-unsafe-unpin.stderr1 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> {}
Dimpl-unsafe-unpin.rs1 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/
Dconflict-unpin.stderr4 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…
Dconflict-unpin.rs3 #[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/
Dtuple_struct.rs1 use pin_project::{pin_project, UnsafeUnpin};
3 #[pin_project(UnsafeUnpin)]
6 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
Dstruct.rs1 use pin_project::{pin_project, UnsafeUnpin};
3 #[pin_project(UnsafeUnpin)]
10 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
Denum.rs1 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> {}
Dtuple_struct.expanded.rs1 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> {}
Dstruct.expanded.rs1 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> {}
Denum.expanded.rs1 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/
Dunsafe_unpin.rs5 use pin_project::{pin_project, UnsafeUnpin};
7 #[pin_project(UnsafeUnpin)]
14 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {}
Dunsafe_unpin-expanded.rs23 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> {}
DREADME.md13 ### 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/
Dbasic.rs4 ::pin_project::UnsafeUnpin for UnsafeUnpinStruct<T, U>
8 ::pin_project::UnsafeUnpin for UnsafeUnpinTupleStruct<T, U>
12 ::pin_project::UnsafeUnpin for UnsafeUnpinEnum<T, U>
Dbasic-safe-part.rs139 #[::pin_project::pin_project(UnsafeUnpin)]
147 #[::pin_project::pin_project(UnsafeUnpin)]
152 UnsafeUnpin,

123