1
Fork 0

Rollup merge of #102577 - kornelski:non-code-visual-studio, r=wesleywiser

Warn about Visual Studio Code branding confusion

VS Code is a popular companion for Rust, but Microsoft's branding is confusing, and users [may not understand](https://users.rust-lang.org/t/complie-error-when-i-run-rustc/82127) they also need the *other* VS.
This commit is contained in:
Matthias Krüger 2022-10-07 07:28:09 +02:00 committed by GitHub
commit 1a2a3249bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -979,9 +979,10 @@ fn link_natively<'a>(
but `link.exe` was not found",
);
sess.note_without_error(
"please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 \
was installed with the Visual C++ option",
"please ensure that Visual Studio 2017 or later, or Build Tools \
for Visual Studio were installed with the Visual C++ option.",
);
sess.note_without_error("VS Code is a different product, and is not sufficient.");
}
sess.abort_if_errors();
}