Add rustdoc support for use<> in (local) RPITs
This commit is contained in:
parent
5315cbe15b
commit
843f5dd93b
6 changed files with 41 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue