1
Fork 0
This commit is contained in:
Ellen 2022-01-14 00:17:09 +00:00
parent 22e491ac7e
commit 73945fd620
5 changed files with 51 additions and 46 deletions

View file

@ -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())
}