Skip to content

Commit b6720ad

Browse files
committed
Always inline query_get_at and query_ensure
1 parent d3edfd1 commit b6720ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/query.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl<'tcx> TyCtxt<'tcx> {
202202
}
203203
}
204204

205-
#[inline]
205+
#[inline(always)]
206206
fn query_get_at<'tcx, Cache>(
207207
tcx: TyCtxt<'tcx>,
208208
execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option<Cache::Value>,
@@ -220,7 +220,7 @@ where
220220
}
221221
}
222222

223-
#[inline]
223+
#[inline(always)]
224224
fn query_ensure<'tcx, Cache>(
225225
tcx: TyCtxt<'tcx>,
226226
execute_query: fn(TyCtxt<'tcx>, Span, Cache::Key, QueryMode) -> Option<Cache::Value>,

0 commit comments

Comments
 (0)