From 99aecdaf65951d9dab9110ed4e114ac329cea6f3 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Thu, 15 Oct 2020 11:37:17 -0600 Subject: [PATCH] Support arbitrary toolchains with cargo wrapper script --- 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"