The following invocation works since 1.88 (or PR #140035):
rustc /dev/null --crate-type lib --cfg '---
---
key'
while it shouldn't because unstable feature frontmatter isn't enabled anywhere.
For context, in 1.87, it yielded the following error:
error: invalid `--cfg` argument: `---
---
key` (expected `key` or `key="value"`)
The same applies to --check-cfg.
The following invocation works since 1.88 (or PR #140035):
while it shouldn't because unstable feature
frontmatterisn't enabled anywhere.For context, in 1.87, it yielded the following error:
The same applies to
--check-cfg.