diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-07 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-07 22:20:08 +0200 |
| commit | 87374de3ad54abae93888f087813d94c882eece1 (patch) | |
| tree | b7ecdf9ecfaa2e23aef26aedeb6835923eecf711 /compiler/rustc_query_system/src/query/mod.rs | |
| parent | 3e51277fe638dc0c8ceb6d1d3acc5aa247277c29 (diff) | |
| download | rust-87374de3ad54abae93888f087813d94c882eece1.tar.gz rust-87374de3ad54abae93888f087813d94c882eece1.zip | |
Miscellaneous inlining improvements
Add `#[inline]` to a few trivial non-generic methods from a perf report that otherwise wouldn't be candidates for inlining.
Diffstat (limited to 'compiler/rustc_query_system/src/query/mod.rs')
| -rw-r--r-- | compiler/rustc_query_system/src/query/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/query/mod.rs b/compiler/rustc_query_system/src/query/mod.rs index de64ebb6203..f698a853d1e 100644 --- a/compiler/rustc_query_system/src/query/mod.rs +++ b/compiler/rustc_query_system/src/query/mod.rs @@ -81,6 +81,7 @@ pub struct QuerySideEffects { } impl QuerySideEffects { + #[inline] pub fn is_empty(&self) -> bool { let QuerySideEffects { diagnostics } = self; diagnostics.is_empty() |
