- Notifications
You must be signed in to change notification settings - Fork14.1k
Commitf005b45
committed
Support C23's Variadics Without a Named Parameter
This PR removes the static check that disallowed extern functionswith ellipsis (varargs) as the only parameter since this is nowvalid in C23.Also, adds a doc comment for `check_decl_cvariadic_pos()` andfixes the name of the function (`varadic` -> `variadic`).1 parent62a104d commitf005b45
File tree
3 files changed
+5
-17
lines changed- compiler/rustc_ast_passes
- src
3 files changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
384 | 387 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | 388 | | |
391 | 389 | | |
392 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
0 commit comments
Comments
(0)