Skip to content

Move cfg_if macro from libstd to libcore #57446

Closed
@dlrobertson

Description

@dlrobertson

Summary

If possible I would like to move the cfg_if macro from src/libstd/macros.rs to src/libcore/macros.rs.

Motivation

The cfg_if macro could potentially increase the readability of some cfgs in no_std code. In particular it could dramatically improve the readability of some code in libcore e.g. ffi::VaList (why I'm interested in moving it 😄). I don't see anything in the macro that would make it invalid in libcore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions