1.0.0-alpha.1
Pre-release
Pre-release
-
Remove deprecated
#[project]
,#[project_ref]
, and#[project_replace]
attributes.Name the projected type by passing an argument with the same name as the method to the
#[pin_project]
attribute instead:- #[pin_project] + #[pin_project(project = EnumProj)] enum Enum<T> { Variant(#[pin] T), } - #[project] fn func<T>(x: Pin<&mut Enum<T>>) { - #[project] match x.project() { - Enum::Variant(_) => { /* ... */ } + EnumProj::Variant(_) => { /* ... */ } } }
-
Remove deprecated
Replace
argument from#[pin_project]
attribute. Useproject_replace
argument instead. -
Suppress
explicit_outlives_requirements
,box_pointers
,clippy::large_enum_variant
,clippy::pattern_type_mismatch
, andclippy::implicit_return
lints in generated code. (#276, #277) -
Diagnostic improvements.
See also tracking issue for 1.0 release.