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.
This commit is contained in:
Carlo Cabrera 2025-08-12 14:09:01 +08:00 committed by Carlo Cabrera
parent 38485e365f
commit b89d4ef633
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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[@]}"