From 42bf044ce83a060bfb16694ff49dc92784abf0a0 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 30 Jul 2025 09:13:53 -0500 Subject: [PATCH] Remove `std`'s dependency on `compiler-builtins` `compiler-builtins` is already in the crate graph via `alloc`, and all features related to `compiler-builtins` goes through `alloc`. There isn't any reason that `std` needs this direct dependency, so remove it. --- library/Cargo.lock | 1 - library/std/Cargo.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/library/Cargo.lock b/library/Cargo.lock index 9eca0e9b0505..988f4a8f7d51 100644 --- a/library/Cargo.lock +++ b/library/Cargo.lock @@ -311,7 +311,6 @@ dependencies = [ "addr2line", "alloc", "cfg-if", - "compiler_builtins", "core", "dlmalloc", "fortanix-sgx-abi", diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml index 29ab9be0e69c..7bc52976500d 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -18,7 +18,6 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] } panic_unwind = { path = "../panic_unwind", optional = true } panic_abort = { path = "../panic_abort" } core = { path = "../core", public = true } -compiler_builtins = { path = "../compiler-builtins/compiler-builtins" } unwind = { path = "../unwind" } hashbrown = { version = "0.15", default-features = false, features = [ 'rustc-dep-of-std',