We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7957da3 commit 9452e27Copy full SHA for 9452e27
faux_macros/src/methods/morphed.rs
@@ -388,12 +388,15 @@ impl MethodData<'_> {
388
}
389
};
390
391
- let panic_message = format!("do not call this ({})", name);
+ let proxy = quote! { <Self>::#faux_ident #turbofish };
392
+
393
+ let panic_message = format!("do not call this ({proxy})");
394
395
let faux_method = syn::parse_quote! {
396
#[allow(clippy::needless_arbitrary_self_type)]
397
#[allow(clippy::boxed_local)]
398
pub fn #faux_ident #generics (self: #receiver_ty, _: (#(#arg_types),*)) -> #output #generics_where_clause {
- panic!(#panic_message)
399
+ panic!(concat!(#panic_message, "{:?}"), #proxy as *const ())
400
401
402
0 commit comments