Skip to content

Commit 8e2faa4

Browse files
committed
Omit receiver type lifetimes from Rust method shim
For a receiver like `self: &mut RustType<'a>`, before: RustType<'a>::methodname // invalid after: RustType::methodname // 👍
1 parent aa61966 commit 8e2faa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macro/src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ fn expand_rust_function_shim_super(
10081008
let call = match &sig.receiver {
10091009
None => quote_spanned!(span=> super::#invoke),
10101010
Some(receiver) => {
1011-
let receiver_type = &receiver.ty;
1011+
let receiver_type = &receiver.ty.rust;
10121012
quote_spanned!(span=> #receiver_type::#invoke)
10131013
}
10141014
};

0 commit comments

Comments
 (0)