Skip to content

codegen: Use _Complex keyword in static function wrappers - #3500

Merged
emilio merged 1 commit into
rust-lang:mainfrom
lwz23:fix/complex-wrapper-keyword
Sep 23, 2026
Merged

emilio merged 1 commit into
rust-lang:mainfrom
lwz23:fix/complex-wrapper-keyword

Conversation

@lwz23

@lwz23 lwz23 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #3481.

Serialize complex parameter types in generated static-function C wrappers with the _Complex keyword. The previous complex spelling requires <complex.h>, which the input header need not include. The existing wrapper fixture now has float _Complex and double _Complex parameters; the integration build compiles the generated C helper without adding <complex.h>.

This changes C wrapper spelling only. It does not address the separate by-value complex ABI mapping tracked in #3255.

@emilio
emilio added this pull request to the merge queue Sep 23, 2026
Merged via the queue into rust-lang:main with commit c5b24eb Sep 23, 2026
52 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.

--wrap-static-fns prints float complex instead of float _Complex

2 participants