Skip to content

Commit

Permalink
Inline SubstFolder::tcx
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Jul 22, 2022
1 parent 0e6251d commit 880bde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/subst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ struct SubstFolder<'a, 'tcx> {
}

impl<'a, 'tcx> TypeFolder<'tcx> for SubstFolder<'a, 'tcx> {
#[inline]
fn tcx<'b>(&'b self) -> TyCtxt<'tcx> {
self.tcx
}
Expand Down

0 comments on commit 880bde0

Please sign in to comment.