Skip to content

Inline always#30

Merged
nlordell merged 2 commits into
nlordell:mainfrom
NCGThompson:inline-always
Oct 25, 2023
Merged

Inline always#30
nlordell merged 2 commits into
nlordell:mainfrom
NCGThompson:inline-always

Conversation

@NCGThompson

Copy link
Copy Markdown
Contributor

Using the corresponding functions in the core library as a guide, I conservatively turned several #[inline]s into #[inline(always)]s. I also added #[inline] to some functions that didn't have it but should.

Comment thread src/int.rs
}

/// Cast to a primitive `i8`.
#[inline]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why these ones weren't also marked as #[inline(always)]?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. You can change it if you think that's best.

@nlordell nlordell merged commit c943fa7 into nlordell:main Oct 25, 2023
@NCGThompson NCGThompson deleted the inline-always branch October 25, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants