From 53e76fc8849cf96af80c524bc4bd1d12cf1f27c5 Mon Sep 17 00:00:00 2001 From: Michael Nett Date: Tue, 4 Jan 2022 12:43:44 +0900 Subject: [PATCH] Use fully-qualified type names in proc macro. Modifies the code emitted by `derive_label` to use fully-qualified type names (e.g. `std::boxed::Box` instead of `Box`). --- crates/bevy_macro_utils/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_macro_utils/src/lib.rs b/crates/bevy_macro_utils/src/lib.rs index b7e0eaa2fd398..d59a926496ecf 100644 --- a/crates/bevy_macro_utils/src/lib.rs +++ b/crates/bevy_macro_utils/src/lib.rs @@ -86,8 +86,8 @@ pub fn derive_label(input: syn::DeriveInput, trait_path: syn::Path) -> TokenStre (quote! { impl #impl_generics #trait_path for #ident #ty_generics #where_clause { - fn dyn_clone(&self) -> Box { - Box::new(Clone::clone(self)) + fn dyn_clone(&self) -> std::boxed::Box { + std::boxed::Box::new(std::clone::Clone::clone(self)) } } })