From ab11ba6c5754806a8dbd2ae1469d8d57008a8093 Mon Sep 17 00:00:00 2001 From: acheron Date: Thu, 28 Mar 2024 03:45:58 +0100 Subject: [PATCH] [SOL] 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 68f1df76ba6..49a053f4961 100644 --- a/src/cargo/ops/cargo_compile/mod.rs +++ b/src/cargo/ops/cargo_compile/mod.rs @@ -496,7 +496,10 @@ pub fn create_bcx<'a, 'gctx>( let plural = if incompatible.len() == 1 { "" } else { "s" }; let mut message = format!( - "rustc {rustc_version} is not supported by the following package{plural}:\n" + "rustc {rustc_version} is not supported by the following package{plural}:\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", ); incompatible.sort_by_key(|(unit, _)| (unit.pkg.name(), unit.pkg.version())); for (unit, msrv) in incompatible {