Auto merge of #17108 - Veykril:rustc-ws-hacks, r=Veykril

internal: Cleanup cfg and env handling in project-model

Fixes https://github.com/rust-lang/rust-analyzer/issues/16122#issuecomment-2065794340

`miri` and `debug_assertions` are now enabled via the `cargo.cfgs` config by default, allowing them to be disabled by overwriting the config.
This commit is contained in:
bors
2024-04-19 16:00:54 +00:00
23 changed files with 516 additions and 323 deletions
+4 -1
View File
@@ -610,7 +610,10 @@
},
"rust-analyzer.cargo.cfgs": {
"markdownDescription": "List of cfg options to enable with the given values.",
"default": {},
"default": {
"debug_assertions": null,
"miri": null
},
"type": "object"
},
"rust-analyzer.cargo.extraArgs": {