Fix rustdoc crash when 'static bound appears in struct declaration
This commit is contained in:
parent
76aeeefdc2
commit
bff08f2731
2 changed files with 22 additions and 2 deletions
|
@ -642,8 +642,8 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
|
|||
name: name.to_string(),
|
||||
kind: GenericParamDefKind::Lifetime,
|
||||
})
|
||||
}
|
||||
&ty::ReVar(_) | &ty::ReEarlyBound(_) => None,
|
||||
},
|
||||
&ty::ReVar(_) | &ty::ReEarlyBound(_) | &ty::ReStatic => None,
|
||||
_ => panic!("Unexpected region type {:?}", r),
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue