Don't forget that the lifetime on hir types is 'tcx
This commit is contained in:
parent
c485ee7147
commit
e532b0dd7e
26 changed files with 105 additions and 98 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue