From 644304d17153d183e296a2d3b89a303d8a148757 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2020 20:15:29 +0000 Subject: [PATCH] Support arbitrary toolchains with cargo wrapper script (#12925) (cherry picked from commit 99aecdaf65951d9dab9110ed4e114ac329cea6f3) Co-authored-by: Trent Nelson --- cargo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cargo b/cargo index 5c882eeebf..d081ce15f3 100755 --- a/cargo +++ b/cargo @@ -17,6 +17,10 @@ case "$1" in toolchain="$rust_nightly" shift ;; + +*) + toolchain="${1#+}" + shift + ;; *) # shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh toolchain="$rust_stable"