Skip to content

Commit 79f50aa

Browse files
committed
feat(alt): Bring up possible check-cfg syntax
1 parent be94add commit 79f50aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/3857-cfg-version.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ Another is how to handle check-cfg.
573573
The proposed syntax is a binary operator but there is no left-hand side in check-cfg.
574574
Would we accept `cfg(rust, values(>="1.95"))`?
575575
How would we specify types? Would we replace `values` with `versions`?
576+
Or do we deviate from the check-cfg syntax and go with `cfg(rust >= version("1.95"))`?
577+
This would make editions `--check-cfg 'cfg(edition, values(version("2015"), version("2018"), version("2021"), version("2024")))' --check-cfg 'cfg(edition >= verison("2025"))'`
576578

577579
Adding typing to cfg,
578580
while likely something we'll do one day,

0 commit comments

Comments
 (0)