Note that trait aliases cannot be recursive
This commit is contained in:
parent
bf360dc272
commit
c861964735
3 changed files with 21 additions and 9 deletions
|
@ -178,6 +178,10 @@ impl Key for (DefId, Option<Ident>) {
|
|||
fn default_span(&self, tcx: TyCtxt<'_>) -> Span {
|
||||
tcx.def_span(self.0)
|
||||
}
|
||||
#[inline(always)]
|
||||
fn key_as_def_id(&self) -> Option<DefId> {
|
||||
Some(self.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl Key for (DefId, LocalDefId, Ident) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue