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

Make trait methods #[inline] #20

Merged
merged 2 commits into from
Feb 24, 2022
Merged

Make trait methods #[inline] #20

merged 2 commits into from
Feb 24, 2022

Conversation

Kijewski
Copy link
Contributor

This allows the compiler to make the call a no-op in many cases.

This allows the compiler to make the call a no-op in many cases.
@sdroege
Copy link
Owner

sdroege commented Feb 24, 2022

Would it have the same effect to put the attribute on the trait definition?

@Kijewski
Copy link
Contributor Author

No, (currently?) you cannot mark the prototype as inline: rust-lang/rust#51280

#[inline] is ignored on function prototype

@sdroege sdroege merged commit 337181c into sdroege:master Feb 24, 2022
@Kijewski Kijewski deleted the pr-inline branch February 24, 2022 15:02
@Kijewski
Copy link
Contributor Author

Thank you!

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