Skip to content

Commit

Permalink
Merge pull request #1712 from dtolnay/unnamedvariadic
Browse files Browse the repository at this point in the history
Parse unnamed variadic args inside function pointer types
  • Loading branch information
dtolnay authored Jul 22, 2024
2 parents 431784b + bed7604 commit 698eb9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ pub(crate) mod parsing {

if inputs.empty_or_trailing()
&& (args.peek(Token![...])
|| args.peek(Ident)
|| (args.peek(Ident) || args.peek(Token![_]))
&& args.peek2(Token![:])
&& args.peek3(Token![...]))
{
Expand Down
4 changes: 0 additions & 4 deletions tests/repo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ static EXCLUDE_FILES: &[&str] = &[
"tests/ui/attributes/unsafe/unsafe-attributes.rs",
"tests/ui/rust-2024/unsafe-attributes/unsafe-attribute-marked.rs",

// TODO: vararg in function pointer type: `extern fn(_: *mut _, _: ...)`
// https://github.com/dtolnay/syn/issues/1711
"library/std/src/sys/pal/uefi/helpers.rs",

// TODO: explicit tail calls: `become _g()`
// https://github.com/dtolnay/syn/issues/1501
"src/tools/miri/tests/fail/tail_calls/cc-mismatch.rs",
Expand Down

0 comments on commit 698eb9f

Please sign in to comment.