Skip to content

Tracking Issue: Drop va_arg macro when MSRV is Rust 1.99+ #1871

Open

Description

@makubacki

A change was addeed to patina_dxe_core/src/protocols.rs when updating to Rust 1.99 in that uses the new next_arg() method in 1.99+ and arg() in prior versions:

// `VaList::arg` was renamed to `next_arg` when `c_variadic` was stabilized in Rust 1.99.
#[rustversion::since(1.99)]
macro_rules! va_arg {
    ($args:expr) => {
        $args.next_arg()
    };
}

#[rustversion::before(1.99)]
macro_rules! va_arg {
    ($args:expr) => {
        $args.arg()
    };
}

This issue tracks cleaning this up to drop the macro when the MSRV is updated to Rust 1.99 or greater.

In addition, this code in patina_dxe_core/src/lib.rs can be cleaned up as well:

// `c_variadic` is stable in Rust 1.99+ but still required to build on the MSRV.
// When the MSRV is updated to >=1.99, `allow(stable_features)` and `feature(c_variadic)`
//can be removed.
#![allow(stable_features)]

Activity

  1. added theissue type on Oct 12, 2026
  2. added this to the MSRV Bump (1.99.0) milestone on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:backlog

    Type

    Projects

    • Status
      Blocked

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions