Skip to content

[rustc]: Tracking Issue: c_variadic #806

Open

Description

@Javagedes

Unstable rustc feature name

c_variadic

Unstable rustc feature issue link

rust-lang/rust#44930

Current progress of the feature

  • Tracking issue created
  • RFC created
  • RFC accepted
  • Implementation merged
  • Feature stabilized

RFC number and PR link

N/A - Used before current process

Usage justification

This allows patina to implement the install_multiple_protocol_interfaces and uninstall_multiple_protocol_interfaces boot services methods.

Crate Usage

  • patina_dxe_core

Activity

  1. added
    rustc-feature-gate
    on Oct 1, 2025
  2. joschock commented on Oct 2, 2025

    @joschock
    Contributor

    note: this would require an upstream change in r-efi to redefine these functions in variadic terms:
    https://github.com/r-efi/r-efi/blob/97b55bed1c2c91dcbf787674849f05337ff80b33/src/system.rs#L992

  3. Javagedes commented on Oct 2, 2025

    @Javagedes
    ContributorAuthor

    This is merely a tracking issue on our usage of this unstable rustc feature. No action on your part is needed. I only assigned it to you as I thought you did the initial implementation. If you did not, then I'll re-assign.

    Again, no action needed regardless

  4. added this to the Backlog milestone on Oct 3, 2025
  5. joschock commented on Jun 17, 2026

    @joschock
    Contributor

    It looks like the upstream c_variadic is thru final comment period and will stabilize soon: rust-lang/rust#44930. There's a bit of discussion of "efiapi" in the stabilization thread, but it's not clear to me whether "efiapi" will support it once it stabilizes. Will need to do a bit more digging on that.

    The targets we support (x64 and aarch64 uefi targets) empirically have correct behavior with extern "c" variadics in the environments we use - so I'd propose that we move forward with that as "stable" once the upstream c_variadics stablizes (which looks soon as noted).

    If we a) start supporting new targets (e.g. 32-bit arm) where extern "c" variadics produce incorrect code, or b) "efiapi" also stablizes variadics, then we can revisit and take appropriate action (moving to "efiapi" preferable if it supports variadics - moving to hand built-asm as needed if not).

  6. os-d commented on Aug 3, 2026

    @os-d
    Contributor

    The feature has been stabilized and is being tracked for Rust 1.99.0: https://github.com/rust-lang/rust/milestone/147.

  7. Javagedes commented on Oct 2, 2026

    @Javagedes
    ContributorAuthor

    Rust 1.99.0 was released on Oct 1. We should be able to update and remove this unstable feature.

  8. makubacki commented on Oct 2, 2026

    @makubacki
    Collaborator

    Rust version update is tracked in #1797.

  9. makubacki commented on Oct 12, 2026

    @makubacki
    Collaborator

    Rust 1.99.0 update is in Update the repo toolchain to Rust 1.99.0 [Rebase & FF] #1869. Maintains an MSRV of Rust 1.90.0.

    Tracking of backward compat code removal tracked in Tracking Issue: Drop va_arg macro when MSRV is Rust 1.99+
    against the MSRV Bump (1.99.0) milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

rustc-feature-gate

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions