refactor(semantic): rename lifetime on impl IntoIterator for &AstNodes (#5881)

Follow on after #5873.

Rename lifetime. I generally consider `'a` in AST types as short for `'ast`, so using `'ast` to mean something else is confusing. Rename lifetime to `'n` (short for `'nodes`).
This commit is contained in:
overlookmotel 2024-09-19 09:30:47 +00:00
parent 6c04fa1e46
commit d910304eac

View file

@ -266,9 +266,9 @@ impl<'a> AstNodes<'a> {
}
}
impl<'ast, 'a> IntoIterator for &'ast AstNodes<'a> {
type Item = &'ast AstNode<'a>;
type IntoIter = std::slice::Iter<'ast, AstNode<'a>>;
impl<'a, 'n> IntoIterator for &'n AstNodes<'a> {
type Item = &'n AstNode<'a>;
type IntoIter = std::slice::Iter<'n, AstNode<'a>>;
fn into_iter(self) -> Self::IntoIter {
self.nodes.iter()