fix bug
This commit is contained in:
parent
22e491ac7e
commit
73945fd620
5 changed files with 51 additions and 46 deletions
|
@ -293,10 +293,6 @@ impl GenericArg<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_const(&self) -> bool {
|
||||
matches!(self, GenericArg::Const(_))
|
||||
}
|
||||
|
||||
pub fn is_synthetic(&self) -> bool {
|
||||
matches!(self, GenericArg::Lifetime(lifetime) if lifetime.name.ident() == Ident::empty())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue