Skip to content

Decide whether to separate cfg(version("..")) and cfg_has_version #141401

Closed
@traviscross

Description

@traviscross

In this stabilization,

it was observed that stabilizing cfg(version("..")) doesn't help people immediately, because they have to wait for their MSRV to exceed the first version in which cfg(version("..")) is supported. To mitigate this, a new mechanism, cfg(has_cfg_version) was proposed.

Since then, @joshtriplett has raised good points about how this mechanism would be difficult to use. See this comment:

We need to decide whether we want to consider these questions together, or whether we'd accept a stabilization of cfg(version("..")) that sets this question aside.

cc @rust-lang/lang @est31 @jieyouxu @ehuss

Tracking:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.F-cfg_version`#![feature(cfg_version)]`T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions