Auto merge of #99028 - tmiasko:inline, r=estebank
Miscellaneous inlining improvements Add `#[inline]` to a few trivial non-generic methods from a perf report that otherwise wouldn't be candidates for inlining.
This commit is contained in:
commit
86b8dd5389
8 changed files with 13 additions and 0 deletions
|
@ -60,6 +60,7 @@ pub enum DepNodeColor {
|
|||
}
|
||||
|
||||
impl DepNodeColor {
|
||||
#[inline]
|
||||
pub fn is_green(self) -> bool {
|
||||
match self {
|
||||
DepNodeColor::Red => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue