Rename GenericArg::id
as GenericArg::hir_id
.
Because `hir_id` is the standard name for methods that return a `HirId` from a HIR node.
This commit is contained in:
parent
ad7b4d5d22
commit
0a52fbe536
4 changed files with 7 additions and 7 deletions
|
@ -280,7 +280,7 @@ impl GenericArg<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn id(&self) -> HirId {
|
||||
pub fn hir_id(&self) -> HirId {
|
||||
match self {
|
||||
GenericArg::Lifetime(l) => l.hir_id,
|
||||
GenericArg::Type(t) => t.hir_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue