Skip to content

Commit

Permalink
generator: Elide lifetimes in impl blocks whenever they are redundant
Browse files Browse the repository at this point in the history
Rust 1.83 suggests that whenever a named lifetime `'a` in an `impl<'a>
(Trait for) Struct<'a>` is specified, but not used anywhere else within
that `impl` block, the naming can be removed and replaced with `'_`.

While we can unconditionally remove this from blocks like `impl
TaggedStructure`, more generator logic is necessary to optionally omit
them on builder blocks with special care around optional presence of
`push_next()`.
  • Loading branch information
MarijnS95 committed Dec 3, 2024
1 parent ee01296 commit 48662ab
Show file tree
Hide file tree
Showing 2 changed files with 1,671 additions and 1,634 deletions.
Loading

0 comments on commit 48662ab

Please sign in to comment.