Skip to content

Commit

Permalink
Auto merge of #120100 - oli-obk:astconv_lifetimes, r=BoxyUwU
Browse files Browse the repository at this point in the history
Don't forget that the lifetime on hir types is `'tcx`

This PR just tracks the `'tcx` lifetime to wherever the original objects actually have that lifetime. This code is needed for rust-lang/rust#107606 (now #120131) so that `ast_ty_to_ty` can invoke `lit_to_const` on an argument passed to it. Currently the argument is `&hir::Ty<'_>`, but after this PR it is `&'tcx hir::Ty<'tcx>`.
  • Loading branch information
bors committed Jan 21, 2024
2 parents 5d9260c + a8a0df1 commit bc1124a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit bc1124a

Please sign in to comment.