Skip to content

Commit

Permalink
Add allow(non_snake_case) to __VERUS_CONST_BODY__ (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqiaozhou authored Nov 15, 2024
1 parent 8bc6dd8 commit 158d726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/builtin_macros/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ impl Visitor {
self.inside_ghost += 1;
self.visit_expr_mut(&mut expr);
self.inside_ghost -= 1;
stmts.push(Stmt::Expr(Expr::Verbatim(quote_spanned!(con_span => #[verus::internal(verus_macro)] #[verus::internal(const_body)] fn __VERUS_CONST_BODY__() -> #con_ty { #expr } ))));
stmts.push(Stmt::Expr(Expr::Verbatim(quote_spanned!(con_span => #[allow(non_snake_case)]#[verus::internal(verus_macro)] #[verus::internal(const_body)] fn __VERUS_CONST_BODY__() -> #con_ty { #expr } ))));
stmts.push(Stmt::Expr(Expr::Verbatim(
quote_spanned!(con_span => unsafe { core::mem::zeroed() }),
)));
Expand Down

0 comments on commit 158d726

Please sign in to comment.