mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Inline 2 functions that appear in dep-graph profiles.
This commit is contained in:
parent
284cb714d2
commit
c6f83b8ff6
@ -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)
|
||||
}
|
||||
|
@ -169,6 +169,7 @@ impl EdgeHeader {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn mask(bits: usize) -> usize {
|
||||
usize::MAX >> ((std::mem::size_of::<usize>() * 8) - bits)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user