Rollup merge of #119960 - cjgillot:inline-dg, r=WaffleLapkin
Inline 2 functions that appear in dep-graph profiles. Those functions are small enough not to deserve a dedicated symbol.
This commit is contained in:
commit
d635cec7c6
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue