Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use std::{marker::PhantomPinned, pin::Pin};
use auxiliary_macro::remove_attr;
use pin_project::pin_project;
fn is_unpin<T: Unpin>() {}
#[pin_project]
#[remove_attr(field_all)]
struct A {
#[pin]
f: PhantomPinned,
}
#[remove_attr(field_all)]
#[pin_project]
struct B {
#[pin]
f: PhantomPinned,
}
fn main() {
is_unpin::<A>();
is_unpin::<B>();
let mut x = A { f: PhantomPinned };
let x = Pin::new(&mut x).project();
let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
let mut x = B { f: PhantomPinned };
let x = Pin::new(&mut x).project();
let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
}