about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-04 08:25:48 +0100
committerGitHub <noreply@github.com>2024-06-04 08:25:48 +0100
commit756af9d5bcb073ba8344d2504614922a4bab22e4 (patch)
treeea7597a168a815a26d75fd8630d0afdbb4e9a473 /compiler/rustc_query_impl/src
parentb477f890417fedbb4178b1f7385e939cb6eac32f (diff)
parentf58bf91aceb7bc029bd130a84cbb156f9149491d (diff)
downloadrust-756af9d5bcb073ba8344d2504614922a4bab22e4.tar.gz
rust-756af9d5bcb073ba8344d2504614922a4bab22e4.zip
Rollup merge of #125818 - Urgau:print-check-cfg-no-values, r=petrochenkov
Handle no values cfgs with `--print=check-cfg`

This PR fix a bug with `--print=check-cfg`, where no values cfgs where not printed since we only printed cfgs that had at least one values.

The representation I choose is `CFG=`, since it doesn't correspond to any valid config, it also IMO nicely complements the `values()` (to indicate no values). Representing the absence of value by the absence of the value.

So for `cfg(feature, values())` we would print `feature=`.

I also added the missing tracking issue number in the doc.

r? ```@petrochenkov```
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions