Skip to content

Commit 49728e3

Browse files
authored
Use x.py check instead of cargo check for build scripts (rust-lang#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.
1 parent f809687 commit 49728e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/doc/rustc-dev-guide/src/building/suggested.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition be
3939
"rust-analyzer.procMacro.enable": true,
4040
"rust-analyzer.cargo.buildScripts.enable": true,
4141
"rust-analyzer.cargo.buildScripts.overrideCommand": [
42-
"cargo",
42+
"python3",
43+
"x.py",
4344
"check",
44-
"-p",
45-
"rustc_driver",
46-
"--message-format=json"
45+
"--json-output"
4746
],
4847
"rust-analyzer.rustc.source": "./Cargo.toml",
4948
"rust-analyzer.linkedProjects": [

0 commit comments

Comments
 (0)