1
Fork 0

Don't forget that the lifetime on hir types is 'tcx

This commit is contained in:
Oli Scherer 2023-02-01 14:23:51 +00:00
parent c485ee7147
commit e532b0dd7e
26 changed files with 105 additions and 98 deletions

View file

@ -248,7 +248,7 @@ pub struct InferArg {
}
impl InferArg {
pub fn to_ty(&self) -> Ty<'_> {
pub fn to_ty(&self) -> Ty<'static> {
Ty { kind: TyKind::Infer, span: self.span, hir_id: self.hir_id }
}
}