about summary refs log tree commit diff
path: root/src/test/ui/check-cfg
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-712/+0
2022-12-14Added PlayStation Vita supportAndrés Martínez-1/+1
2022-11-17Add powerpc64-ibm-aix as Tier-3 targetQiu Chaofan-1/+1
2022-11-11Add `nto` as known `target_os`Florian Bartels-1/+1
2022-10-01bless ui testsMaybe Waffle-5/+5
2022-09-02Add warning against unexpected --cfg with --check-cfgUrgau-3/+23
2022-08-31Fix ci checksDezhi Wu-2/+2
2022-07-20Remove implicit names and values from --cfg in --check-cfgUrgau-38/+63
2022-06-13Add Apple WatchOS compile targetsVladimir Michael Eatwell-1/+1
2022-06-04test: add `xous` to well-known-values.stderrSean Cross-1/+1
Signed-off-by: Sean Cross <sean@xobs.io>
2022-05-24RFC3239: Add tests for compact `cfg(target(..))`Loïc BRANSTETT-0/+51
2022-03-19Extend --check-cfg tests to all predicate inside all/anyLoïc BRANSTETT-1/+117
2022-03-09Add miri to the well known conditional compilation names and valuesLoïc BRANSTETT-1/+41
2022-03-05Improve unexpected_cfgs lint when their is no value expectedLoïc BRANSTETT-4/+22
2022-03-04Rollup merge of #94362 - Urgau:check-cfg-values, r=petrochenkovDylan DPC-3/+75
Add well known values to `--check-cfg` implementation This pull-request adds well known values for the well known names via `--check-cfg=values()`. [RFC 3013: Checking conditional compilation at compile time](https://rust-lang.github.io/rfcs/3013-conditional-compilation-checking.html#checking-conditional-compilation-at-compile-time) doesn't define this at all, but this seems a nice improvement. The activation is done by a empty `values()` (new syntax) similar to `names()` except that `names(foo)` also activate well known names while `values(aa, "aa", "kk")` would not. As stated this use a different activation logic because well known values for the well known names are not always sufficient. In fact this is problematic for every `target_*` cfg because of non builtin targets, as the current implementation use those built-ins targets to create the list the well known values. The implementation is straight forward, first we gather (if necessary) all the values (lazily or not) and then we apply them. r? ```@petrochenkov```
2022-03-04Add well known values to --check-cfg implementationLoïc BRANSTETT-1/+75
2022-03-03Add support for values() with --check-cfgLoïc BRANSTETT-4/+2
2022-03-03Fix invalid lint_node_id being put on a removed stmtLoïc BRANSTETT-0/+20
2022-03-01Improve allowness of the unexpected_cfgs lintLoïc BRANSTETT-0/+62
2022-02-23Continue improvements on the --check-cfg implementationLoïc BRANSTETT-1/+138
- Test the combinations of --check-cfg with partial values() and --cfg - Test that we detect unexpected value when none are expected
2022-02-22Improve diagnostic of the unexpected_cfgs lintLoïc BRANSTETT-4/+9
2022-02-22Add test for well known names defined by rustcLoïc BRANSTETT-0/+49
2022-02-16Implement --check-cfg option (RFC 3013)Loïc BRANSTETT-0/+97
Co-authored-by: Urgau <lolo.branstett@numericable.fr> Co-authored-by: Marcelina Kościelnicka <mwk@0x04.net>