From ec7bb8efef9e6cdf68b9576feb9c1574dfba4b2b Mon Sep 17 00:00:00 2001 From: Jakob Degen Date: Mon, 28 Oct 2024 11:36:40 -0700 Subject: [PATCH] derive: Explicit allow `non_camel_case_types` Summary: Rustc implicitly allows this lint in macro generated code. r-a used to do the same but there seems to be a bug where that's no longer the case, so now there are warning everywhere. Regardless, explicit allow is better anyway Reviewed By: IanChilds Differential Revision: D65008605 fbshipit-source-id: 36bb726b5fda4439cc92746911622d9d6bb436c0 --- starlark_derive/src/module/render/fun.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/starlark_derive/src/module/render/fun.rs b/starlark_derive/src/module/render/fun.rs index b8ea10a46..79960945d 100644 --- a/starlark_derive/src/module/render/fun.rs +++ b/starlark_derive/src/module/render/fun.rs @@ -266,6 +266,7 @@ pub(crate) fn render_fun(x: StarFun) -> syn::Result { let this_outer_param = this_outer_param.into_iter(); let struct_def: syn::ItemStruct = syn::parse_quote! { + #[allow(non_camel_case_types)] struct #struct_name { #( #struct_fields, )* }