diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-25 11:47:23 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-04-26 07:46:14 +0200 |
| commit | 4440e8196aee718cbd3aafa41a0919f432c06330 (patch) | |
| tree | 949aadbe8ee101ba29d4a8d1b838e7a52b8d5bf0 /compiler/rustc_query_system/src/query | |
| parent | 66d85438cad26aee7ff0d123739edcc43e16bc4a (diff) | |
| download | rust-4440e8196aee718cbd3aafa41a0919f432c06330.tar.gz rust-4440e8196aee718cbd3aafa41a0919f432c06330.zip | |
Add query accessor functions
Diffstat (limited to 'compiler/rustc_query_system/src/query')
| -rw-r--r-- | compiler/rustc_query_system/src/query/plumbing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index bce01debc53..3b17c665fb7 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -236,7 +236,7 @@ pub(crate) struct CycleError<D: DepKind> { /// It returns the shard index and a lock guard to the shard, /// which will be used if the query is not in the cache and we need /// to compute it. -#[inline] +#[inline(always)] pub fn try_get_cached<Tcx, C>(tcx: Tcx, cache: &C, key: &C::Key) -> Option<C::Value> where C: QueryCache, |
