From 489f748aa26192487cb32d1ca3edacbd244dd743 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:24:03 +0800 Subject: [PATCH] rust: add `link_overwrite` for `rustfmt` merge Needed after #181351, which merges `rustfmt` into `rust`. --- Formula/r/rust.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/r/rust.rb b/Formula/r/rust.rb index 9061defca0db2..728db097f055b 100644 --- a/Formula/r/rust.rb +++ b/Formula/r/rust.rb @@ -46,6 +46,8 @@ class Rust < Formula uses_from_macos "zlib" link_overwrite "etc/bash_completion.d/cargo" + # These used to belong in `rustfmt`. + link_overwrite "bin/cargo-fmt", "bin/git-rustfmt", "bin/rustfmt", "bin/rustfmt-*" # From https://github.com/rust-lang/rust/blob/#{version}/src/stage0 resource "cargobootstrap" do