Skip to content

Commit

Permalink
Inline Query::compute.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Mar 13, 2020
1 parent c3c5e93 commit 2bf1353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ macro_rules! define_queries_inner {
DepConstructor::$node(tcx, *key)
}

#[inline(never)]
#[inline]
fn compute(tcx: TyCtxt<'tcx>, key: Self::Key) -> Self::Value {
let provider = tcx.queries.providers.get(key.query_crate())
// HACK(eddyb) it's possible crates may be loaded after
Expand Down

0 comments on commit 2bf1353

Please sign in to comment.