You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is cfg(version(...)) relative to in terms of nightly compilers?
We could check against what rustc --version says, e.g. nightly being 1.40.0, beta being 1.39.0, and stable being 1.38.0. We could also have cfg(version(...)) at most be relative to the beta compiler. See the RFC for a longer discussion.
This is a tracking issue for
#[cfg(version(..))](rust-lang/rfcs#2523).Steps:
#[cfg(version(..))]#71314#[cfg(version(...))]#141137 (closed due to ahas_cfg_versiondesign consideration)#[cfg(version(...))], take 2 #141766Unresolved questions:
What is
cfg(version(...))relative to in terms of nightly compilers?We could check against what
rustc --versionsays, e.g. nightly being1.40.0, beta being1.39.0, and stable being1.38.0. We could also havecfg(version(...))at most be relative to the beta compiler. See the RFC for a longer discussion.#[cfg(version(..))]#64796 (comment)Should we also support
version = "..."so that crates having a MSRV below whenversion(...)was stabilized can use the flag?Dependency updates cause language changes (src tarballs are vendored without respecting lockfile #79010)