1
Fork 0

Add rustdoc support for use<> in (local) RPITs

This commit is contained in:
Michael Goulet 2024-07-11 19:49:51 -04:00
parent 5315cbe15b
commit 843f5dd93b
6 changed files with 41 additions and 3 deletions

View file

@ -2708,6 +2708,13 @@ impl PreciseCapturingArg<'_> {
PreciseCapturingArg::Param(param) => param.hir_id,
}
}
pub fn name(self) -> Symbol {
match self {
PreciseCapturingArg::Lifetime(lt) => lt.ident.name,
PreciseCapturingArg::Param(param) => param.ident.name,
}
}
}
/// We need to have a [`Node`] for the [`HirId`] that we attach the type/const param