diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-03-30 14:36:28 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-03-30 14:37:44 +0200 |
| commit | 87cdfb6e71b0ebe3e41e04d8840a20d7428197be (patch) | |
| tree | 4376edff6c97540d941bb6d45271f219e91dae86 /src/librustc_query_system | |
| parent | a80ec3b3b1d11ed83754885efdd07037d256dbf2 (diff) | |
Add inline attributes for functions used in the query system
Diffstat (limited to 'src/librustc_query_system')
| -rw-r--r-- | src/librustc_query_system/dep_graph/graph.rs | 1 | ||||
| -rw-r--r-- | src/librustc_query_system/query/plumbing.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_query_system/dep_graph/graph.rs b/src/librustc_query_system/dep_graph/graph.rs index 73983e1644c..fa2b51058a3 100644 --- a/src/librustc_query_system/dep_graph/graph.rs +++ b/src/librustc_query_system/dep_graph/graph.rs @@ -1112,6 +1112,7 @@ impl DepNodeColorMap { DepNodeColorMap { values: (0..size).map(|_| AtomicU32::new(COMPRESSED_NONE)).collect() } } + #[inline] fn get(&self, index: SerializedDepNodeIndex) -> Option<DepNodeColor> { match self.values[index].load(Ordering::Acquire) { COMPRESSED_NONE => None, diff --git a/src/librustc_query_system/query/plumbing.rs b/src/librustc_query_system/query/plumbing.rs index b371a914c6f..9da13f23664 100644 --- a/src/librustc_query_system/query/plumbing.rs +++ b/src/librustc_query_system/query/plumbing.rs @@ -51,6 +51,7 @@ pub struct QueryState<CTX: QueryContext, C: QueryCache> { } impl<CTX: QueryContext, C: QueryCache> QueryState<CTX, C> { + #[inline] pub(super) fn get_lookup<'tcx>( &'tcx self, key: &C::Key, |
