Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #[inline] to all function generated by #[derive] #40

Merged
merged 2 commits into from Aug 24, 2020

Conversation

Amanieu
Copy link
Contributor

@Amanieu Amanieu commented Aug 20, 2020

These functions are all either very small (newtype wrappers) or get optimized down to a transmute LLVM. There is no reason for them not to be inlined.

Fixes #33

@cuviper
Copy link
Member

cuviper commented Aug 24, 2020

Thanks! I'll go ahead and publish a release from here.

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 24, 2020

@bors bors bot merged commit 2d19853 into rust-num:master Aug 24, 2020
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.

Provide optional inline hint
2 participants