Skip to content

Move cfg_if macro from libstd to libcore #57446

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.

Activity

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

    T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions