Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bon-macros/src/builder/builder_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ impl BuilderGenCtx {
.collect::<Vec<_>>();

// Every item here is a single top-level item. We add the `allow`
// attributes to each of them directly. Previously this code converted
// the final token stream to string and parsed it to `syn::File`, which
// resulted in a significant performance hit. Ouch. Don't do that again!
// attributes to each of them directly. Previously this code parsed
// the final token stream into a `syn::File`, which resulted in a
// significant performance hit. Ouch. Don't do that again!
let other_items = [builder_decl, builder_impl]
.into_iter()
.chain(builder_derives)
Expand Down
Loading