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

Parse unnamed C varargs within function pointer types #1711

Closed
dtolnay opened this issue Jul 21, 2024 · 1 comment · Fixed by #1712
Closed

Parse unnamed C varargs within function pointer types #1711

dtolnay opened this issue Jul 21, 2024 · 1 comment · Fixed by #1712
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jul 21, 2024

error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, `dyn`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
  --> library/std/src/sys/pal/uefi/helpers.rs:24:103
   |
24 | type BootInstallMultipleProtocolInterfaces = unsafe extern "efiapi" fn(_: *mut r_efi::efi::Handle, _: ...) -> r_efi::efi::Status;
   |                                                                                                       ^
@dtolnay dtolnay added the syntax label Jul 21, 2024
@dtolnay dtolnay changed the title Parse C varargs within function pointer types Parse unnamed C varargs within function pointer types Jul 22, 2024
@dtolnay
Copy link
Owner Author

dtolnay commented Jul 22, 2024

If the variadic arg is named, it's already correctly parsed. unsafe extern fn(_: T, rest: ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant