From b89d4ef6336585e9836b0c0d3c303aa2bc4b2769 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Tue, 12 Aug 2025 14:09:01 +0800 Subject: [PATCH] shims/super/rustc_wrapper: fix comment In #20424, we moved `HOMEBREW_RUSTFLAGS` to the end of the compiler invocation, but didn't update the comment. Let's fix that. While we're here, let's fix these `shellcheck disable`s. --- Library/Homebrew/shims/super/rustc_wrapper | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/shims/super/rustc_wrapper b/Library/Homebrew/shims/super/rustc_wrapper index a9daf6b560..f18ca4bb30 100755 --- a/Library/Homebrew/shims/super/rustc_wrapper +++ b/Library/Homebrew/shims/super/rustc_wrapper @@ -9,7 +9,6 @@ RUSTC="${1}" shift -# Prepend HOMEBREW_RUSTFLAGS to the arguments if set. -# HOMEBREW_RUSTFLAGS is set in extend/ENV/{std,super}.rb -# shellcheck disable=SC2086,SC2154 -exec "${RUSTC}" "$@" ${HOMEBREW_RUSTFLAGS} +# Append HOMEBREW_RUSTFLAGS to the arguments if set. +read -ra RUSTFLAGS <<<"${HOMEBREW_RUSTFLAGS:-}" +exec "${RUSTC}" "$@" "${RUSTFLAGS[@]}"