Compute lifetimes in scope at diagnostic time.
This commit is contained in:
parent
cb0584f86b
commit
a07290047e
9 changed files with 101 additions and 94 deletions
|
@ -3302,6 +3302,7 @@ pub enum Node<'hir> {
|
|||
Stmt(&'hir Stmt<'hir>),
|
||||
PathSegment(&'hir PathSegment<'hir>),
|
||||
Ty(&'hir Ty<'hir>),
|
||||
TypeBinding(&'hir TypeBinding<'hir>),
|
||||
TraitRef(&'hir TraitRef<'hir>),
|
||||
Binding(&'hir Pat<'hir>),
|
||||
Pat(&'hir Pat<'hir>),
|
||||
|
@ -3347,6 +3348,7 @@ impl<'hir> Node<'hir> {
|
|||
| Node::PathSegment(PathSegment { ident, .. }) => Some(*ident),
|
||||
Node::Lifetime(lt) => Some(lt.name.ident()),
|
||||
Node::GenericParam(p) => Some(p.name.ident()),
|
||||
Node::TypeBinding(b) => Some(b.ident),
|
||||
Node::Param(..)
|
||||
| Node::AnonConst(..)
|
||||
| Node::Expr(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue