Skip to content

Commit

Permalink
derive: Explicit allow non_camel_case_types
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JakobDegen authored and facebook-github-bot committed Oct 28, 2024
1 parent 412dedb commit ec7bb8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions starlark_derive/src/module/render/fun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ pub(crate) fn render_fun(x: StarFun) -> syn::Result<syn::Stmt> {
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, )*
}
Expand Down

0 comments on commit ec7bb8e

Please sign in to comment.