Decide whether to separate cfg(version(".."))
and cfg_has_version
#141401
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
F-cfg_version
`#![feature(cfg_version)]`
I-lang-nominated
Nominated for discussion during a lang team meeting.
P-lang-drag-1
Lang team prioritization drag level 1. https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
In this stabilization,
#[cfg(version(...))]
#141137it 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 whichcfg(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:
#[cfg(version(...))]
#141137 (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:
#[cfg(version(..))]
#64796cfg_version
cargo#15531The text was updated successfully, but these errors were encountered: