From fdf0420c07d889a474eadb36c01fd8b28e17d51b Mon Sep 17 00:00:00 2001 From: acheron Date: Thu, 28 Mar 2024 03:45:58 +0100 Subject: [PATCH] Improve error message for MSRV --- src/cargo/ops/cargo_compile/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_compile/mod.rs b/src/cargo/ops/cargo_compile/mod.rs index 94c6cf9de04..d57c1e2b880 100644 --- a/src/cargo/ops/cargo_compile/mod.rs +++ b/src/cargo/ops/cargo_compile/mod.rs @@ -521,7 +521,10 @@ pub fn create_bcx<'a, 'cfg>( anyhow::bail!( "package `{}` cannot be built because it requires rustc {} or newer, \ - while the currently active rustc version is {}\n{}", + while the currently active rustc version is {}\n\ + Note that this is the rustc version that ships with Solana tools and \ + not your system's rustc version. Use `solana-install update` or head \ + over to https://docs.solanalabs.com/cli/install to install a newer version.\n{}", unit.pkg, version, current_version,