Skip to content

Commit

Permalink
Merge pull request #140980 from ZhongRuoyu/rust-conflicts
Browse files Browse the repository at this point in the history
rust rust-analyzer rustfmt: remove conflicts
  • Loading branch information
ZhongRuoyu authored Aug 31, 2023
2 parents 68d5efc + 5555e24 commit 88e0728
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Formula/r/rust-analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class RustAnalyzer < Formula

depends_on "rust" => :build

conflicts_with "rust", because: "both install `rust-analyzer` binary"

def install
cd "crates/rust-analyzer" do
system "cargo", "install", "--bin", "rust-analyzer", *std_cargo_args
Expand Down
3 changes: 0 additions & 3 deletions Formula/r/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ class Rust < Formula
uses_from_macos "curl"
uses_from_macos "zlib"

conflicts_with "rust-analyzer", because: "both install `rust-analyzer` binary"
conflicts_with "rustfmt", because: "both install `cargo-fmt` and `rustfmt` binaries"

# From https://github.com/rust-lang/rust/blob/#{version}/src/stage0.json
resource "cargobootstrap" do
on_macos do
Expand Down
2 changes: 0 additions & 2 deletions Formula/r/rustfmt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class Rustfmt < Formula
depends_on "rustup-init" => :build
depends_on "rust" => :test

conflicts_with "rust", because: "both install `cargo-fmt` and `rustfmt` binaries"

def install
system "#{Formula["rustup-init"].bin}/rustup-init", "-qy", "--no-modify-path"
ENV.prepend_path "PATH", HOMEBREW_CACHE/"cargo_cache/bin"
Expand Down

0 comments on commit 88e0728

Please sign in to comment.