Skip to content

Commit

Permalink
Always inline query_get_at and query_ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Apr 30, 2023
1 parent d3edfd1 commit b6720ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_middle/src/ty/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl<'tcx> TyCtxt<'tcx> {
}
}

#[inline]
#[inline(always)]
fn query_get_at<'tcx, Cache>(
tcx: TyCtxt<'tcx>,
execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option<Cache::Value>,
Expand All @@ -220,7 +220,7 @@ where
}
}

#[inline]
#[inline(always)]
fn query_ensure<'tcx, Cache>(
tcx: TyCtxt<'tcx>,
execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option<Cache::Value>,
Expand Down

0 comments on commit b6720ad

Please sign in to comment.