Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix derive PassByInner with generics #13247

Merged
merged 2 commits into from
Jan 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn derive_impl(mut input: DeriveInput) -> Result<TokenStream> {
#crate_include

impl #impl_generics #crate_::pass_by::PassBy for #ident #ty_generics #where_clause {
type PassBy = #crate_::pass_by::Inner<#ident, #inner_ty>;
type PassBy = #crate_::pass_by::Inner<Self, #inner_ty>;
}

impl #impl_generics #crate_::pass_by::PassByInner for #ident #ty_generics #where_clause {
Expand Down