Skip to content

Commit b53daee

Browse files
committed
better comment
1 parent 96dbea8 commit b53daee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@
149149
150150
#![cfg_attr(not(feature = "std"), no_std)]
151151
#![allow(clippy::upper_case_acronyms)]
152-
// The AST represents rich AST nodes,
153-
// and favors expressiveness and ease of use over speed and memory usage.
152+
// Permit large enum variants to keep a unified, expressive AST.
153+
// Splitting complex nodes (expressions, statements, types) into separate types
154+
// would bloat the API and hide intent. Extra memory is a worthwhile tradeoff.
154155
#![allow(clippy::large_enum_variant)]
155156

156157
// Allow proc-macros to find this crate

0 commit comments

Comments
 (0)