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

Correctly handle __attribute__((noreturn)) in function arguments #2716

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

remexre
Copy link

@remexre remexre commented Jan 12, 2024

Fixes #2715.

I have not been able to find a way to get at this information directly through the C API of libclang 9, so instead this patch just checks how deeply nested in parentheses the __attribute__((noreturn)) qualifier is.

@remexre remexre force-pushed the fix-noreturn-on-arguments branch from fb72abf to 7ef6f9d Compare January 12, 2024 01:53
@remexre remexre force-pushed the fix-noreturn-on-arguments branch from 7ef6f9d to 0529110 Compare January 12, 2024 02:04
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

Yikes.

@emilio emilio merged commit 8fffbf8 into rust-lang:main Jan 12, 2024
32 checks passed
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.

__attribute__((noreturn)) in function pointer argument applies to function's type
2 participants