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

ir: Put function attribute detection under an opt-in flag. #1467

Merged
merged 2 commits into from
Dec 14, 2018

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Dec 14, 2018

Given it was a considerable performance hit under some workloads.

Closes #1465.

@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

Given it was a considerable performance hit under some workloads.

Closes rust-lang#1465.
@emilio emilio changed the title ir: Point function attribute detection under an opt-in flag. ir: Put function attribute detection under an opt-in flag. Dec 14, 2018
@emilio emilio merged commit 371e744 into rust-lang:master Dec 14, 2018
@emilio emilio deleted the attr-detection-flag branch December 14, 2018 12:43
MihirLuthra added a commit to fortanix/rust-mbedtls that referenced this pull request Feb 7, 2022
Although, bindgen needs .enable_function_attribute_detection()
to process __attribute__((__warn_unused_result__)) because parsing
attrs can be really slow in certain cases. Benches were performed
to confirm our case doesn't face that issue.

References:
rust-lang/rust-bindgen#2149
rust-lang/rust-bindgen#1465
rust-lang/rust-bindgen#1466
rust-lang/rust-bindgen#1467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants