Skip to content

Commit

Permalink
Use x.py check instead of cargo check for build scripts (rust-lan…
Browse files Browse the repository at this point in the history
…g#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.
  • Loading branch information
jyn514 authored Jul 6, 2022
1 parent eb83839 commit 07efe00
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/building/suggested.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 07efe00

Please sign in to comment.