File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version = "0.3.0"
44authors = [" Gary Guo <gary@garyguo.net>" , " Benno Lossin <lossin@kernel.org>" ]
55edition = " 2024"
66license = " Apache-2.0 OR MIT"
7- repository = " https://github.com/nbdd0121 /field-projection"
7+ repository = " https://github.com/Rust-for-Linux /field-projection"
88keywords = [" macros" , " attribute" ]
99categories = [" no-std" , " rust-patterns" ]
1010description = """
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub fn derive(
120120 false => ( quote ! ( & #lt mut #ty) , quote ! ( #r) ) ,
121121 } ;
122122 quote ! {
123- unsafe impl #impl_gen #core_:: marker:: PinableField
123+ unsafe impl #impl_gen #core_:: marker:: PinnableField
124124 for #field_info #info_ty_gen
125125 #whr
126126 {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub unsafe trait Field: UnalignedField {}
2929///
3030/// `Self::Projected<'a>` either is `Pin<&'a mut Self::Type>` or `&'a mut Self::Type`. In the first
3131/// case the field is structurally pinned.
32- pub unsafe trait PinableField : UnalignedField {
32+ pub unsafe trait PinnableField : UnalignedField {
3333 /// The pin-projected type of `Self`.
3434 ///
3535 /// Either `Pin<&'a mut Self::Type>` or `&'a mut Self::Type`.
Original file line number Diff line number Diff line change 11use crate :: {
22 compat,
3- marker:: { Field , PinableField , UnalignedField } ,
3+ marker:: { Field , PinnableField , UnalignedField } ,
44} ;
55
66/// Type supporting field projections.
@@ -11,7 +11,7 @@ use crate::{
1111/// ident in the expressions `@base->field` and `@mut base->field` refer to a field of the type
1212/// `Self::Inner`.
1313///
14- /// If the projection `@base->field` is available still depends on weather `Self` implements
14+ /// If the projection `@base->field` is available still depends on whether `Self` implements
1515/// `Project<field_of!(Self::Inner, field)>`.
1616pub trait Projectable : Sized {
1717 type Inner : ?Sized ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ unsafe impl<T> SafeProject for Pin<&mut T> {}
1010// No additional safety requirements for `project_mut`.
1111impl < ' a , T , F > Project < F > for Pin < & ' a mut T >
1212where
13- F : PinableField < Base = T > + Field < Base = T > ,
13+ F : PinnableField < Base = T > + Field < Base = T > ,
1414 F :: Type : Sized + ' a ,
1515{
1616 type Output < ' b >
3131// No additional safety requirements for `project_mut`.
3232impl < ' a , T , F > ProjectMut < F > for Pin < & ' a mut T >
3333where
34- F : PinableField < Base = T > + Field < Base = T > ,
34+ F : PinnableField < Base = T > + Field < Base = T > ,
3535 F :: Type : Sized + ' a ,
3636{
3737 type OutputMut < ' b >
You can’t perform that action at this time.
0 commit comments