about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-07 07:28:09 +0200
committerGitHub <noreply@github.com>2022-10-07 07:28:09 +0200
commit1a2a3249bc739de6f6bc4c8ccd6ab41ae3f5500e (patch)
tree7b9be434137e79afe0fbd454da532e389938cb31 /compiler/rustc_codegen_ssa/src/back
parent233384f3956b2b16bba935f6f8d10d073f8ddf4a (diff)
parent9b3db34072551680c12da4192ad528a01579ce61 (diff)
downloadrust-1a2a3249bc739de6f6bc4c8ccd6ab41ae3f5500e.tar.gz
rust-1a2a3249bc739de6f6bc4c8ccd6ab41ae3f5500e.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index bb57fca74a2..ce832def439 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -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();
         }