From 66b5b91b9bc464676964d014cd36020c6ef72f0e Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Mon, 26 Sep 2022 15:30:57 +0200 Subject: [PATCH] Fully-qualified names in quote --- crates/backend/src/codegen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index a80ff0249ad..50d9094157a 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -136,7 +136,7 @@ impl TryToTokens for ast::LinkToModule { self.0.try_to_tokens(&mut program)?; let link_function_name = self.0.link_function_name(0); let name = Ident::new(&link_function_name, Span::call_site()); - let abi_ret = quote! { ::Abi }; + let abi_ret = quote! { ::Abi }; let extern_fn = extern_fn(&name, &[], &[], &[], abi_ret); (quote! { { @@ -144,7 +144,7 @@ impl TryToTokens for ast::LinkToModule { #extern_fn unsafe { - ::from_abi(#name()) + ::from_abi(#name()) } } })