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:
Nicholas Nethercote 2022-08-29 11:24:46 +10:00
parent ad7b4d5d22
commit 0a52fbe536
4 changed files with 7 additions and 7 deletions

View file

@ -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,