mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
Support cfg(true) and cfg(false)
As per RFC 3695.
This commit is contained in:
parent
6a67a4d3cd
commit
074050c242
10 changed files with 87 additions and 6 deletions
|
|
@ -19,6 +19,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -81,6 +82,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -151,6 +153,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -221,6 +224,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -291,6 +295,7 @@
|
|||
[
|
||||
"feature=default",
|
||||
"feature=std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: Some(
|
||||
|
|
@ -303,6 +308,7 @@
|
|||
"feature=rustc-dep-of-std",
|
||||
"feature=std",
|
||||
"feature=use_std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -81,6 +82,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -151,6 +153,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -221,6 +224,7 @@
|
|||
[
|
||||
"rust_analyzer",
|
||||
"test",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -291,6 +295,7 @@
|
|||
[
|
||||
"feature=default",
|
||||
"feature=std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: Some(
|
||||
|
|
@ -303,6 +308,7 @@
|
|||
"feature=rustc-dep-of-std",
|
||||
"feature=std",
|
||||
"feature=use_std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
cfg_options: CfgOptions(
|
||||
[
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -79,6 +80,7 @@
|
|||
cfg_options: CfgOptions(
|
||||
[
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -148,6 +150,7 @@
|
|||
cfg_options: CfgOptions(
|
||||
[
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -217,6 +220,7 @@
|
|||
cfg_options: CfgOptions(
|
||||
[
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -287,6 +291,7 @@
|
|||
[
|
||||
"feature=default",
|
||||
"feature=std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: Some(
|
||||
|
|
@ -299,6 +304,7 @@
|
|||
"feature=rustc-dep-of-std",
|
||||
"feature=std",
|
||||
"feature=use_std",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -56,6 +57,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -86,6 +88,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -116,6 +119,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -146,6 +150,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -193,6 +198,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -223,6 +229,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -318,6 +325,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -348,6 +356,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -378,6 +387,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -410,6 +420,7 @@
|
|||
"group1_other_cfg=other_config",
|
||||
"group2_cfg=yet_another_config",
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -485,6 +496,7 @@
|
|||
"group2_cfg=fourth_config",
|
||||
"group2_cfg=yet_another_config",
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
"unrelated_cfg",
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -56,6 +57,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -86,6 +88,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -116,6 +119,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -146,6 +150,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -193,6 +198,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -223,6 +229,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -318,6 +325,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -348,6 +356,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -378,6 +387,7 @@
|
|||
[
|
||||
"debug_assertions",
|
||||
"miri",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
@ -407,6 +417,7 @@
|
|||
cfg_options: CfgOptions(
|
||||
[
|
||||
"rust_analyzer",
|
||||
"true",
|
||||
],
|
||||
),
|
||||
potential_cfg_options: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue