Rust: fix Translator lifetime in codegen template · github/codeql@d799a3c · GitHub
Skip to content

Commit d799a3c

Browse files
redsun82Copilot
andcommitted
Rust: fix Translator lifetime in codegen template
The template emitted `impl Translator<'_>` (one lifetime) while `base.rs` declares `Translator<'a, 'db>`, so regenerating produced a `generated.rs` that did not compile. Update the template to two lifetimes and regenerate. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 890cb55d-0437-4bd7-9268-87b8897ada01
1 parent ee020e5 commit d799a3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎rust/ast-generator/templates/extractor.mustache‎

Lines changed: 1 addition & 1 deletion

‎rust/extractor/src/translate/generated.rs‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)