Use `x.py check` instead of `cargo check` for build scripts (#1384)

Cargo check isn't supported and gives an error that CFG_CHANNEL is missing.
It also generates a new target dir and recompiles dependencies.
Use x.py instead, which avoids both issues.
This commit is contained in:
Joshua Nelson 2022-07-06 17:36:22 -04:00 committed by GitHub
parent 96c3ff376a
commit 964a0c4390
1 changed files with 3 additions and 4 deletions

View File

@ -39,11 +39,10 @@ you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition be
"rust-analyzer.procMacro.enable": true,
"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.cargo.buildScripts.overrideCommand": [
"cargo",
"python3",
"x.py",
"check",
"-p",
"rustc_driver",
"--message-format=json"
"--json-output"
],
"rust-analyzer.rustc.source": "./Cargo.toml",
"rust-analyzer.linkedProjects": [