about summary refs log tree commit diff
path: root/compiler/rustc_index_macros
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2024-01-14 12:57:13 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2024-01-14 12:57:13 +0000
commitc6f83b8ff6b4e0fa98713b720ff48d67efe8d932 (patch)
tree7db92fcc7d3cbdb763f77ab33ae619cdc9602af6 /compiler/rustc_index_macros
parent284cb714d2bf54b1af41dbc18469b478bc6f6489 (diff)
downloadrust-c6f83b8ff6b4e0fa98713b720ff48d67efe8d932.tar.gz
rust-c6f83b8ff6b4e0fa98713b720ff48d67efe8d932.zip
Inline 2 functions that appear in dep-graph profiles.
Diffstat (limited to 'compiler/rustc_index_macros')
-rw-r--r--compiler/rustc_index_macros/src/newtype.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_index_macros/src/newtype.rs b/compiler/rustc_index_macros/src/newtype.rs
index df1318c835e..ede8416125d 100644
--- a/compiler/rustc_index_macros/src/newtype.rs
+++ b/compiler/rustc_index_macros/src/newtype.rs
@@ -263,6 +263,7 @@ impl Parse for Newtype {
             impl std::ops::Add<usize> for #name {
                 type Output = Self;
 
+                #[inline]
                 fn add(self, other: usize) -> Self {
                     Self::from_usize(self.index() + other)
                 }