about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorJana Dönszelmann <jonathan@donsz.nl>2025-07-03 13:29:36 +0200
committerGitHub <noreply@github.com>2025-07-03 13:29:36 +0200
commit0aaac883de0b16b6ec60b48038913e05eff5cc2f (patch)
tree27d85f8268290ae3d9a9951d3ae0152e7f04e526 /library
parent5026d0cd8e45d2c882d1161edcb6c40e97c87a1a (diff)
parent6b824e8143c1dcacdbac3f14f01e2bbb85da8907 (diff)
downloadrust-0aaac883de0b16b6ec60b48038913e05eff5cc2f.tar.gz
rust-0aaac883de0b16b6ec60b48038913e05eff5cc2f.zip
Rollup merge of #143038 - Qelxiros:142676-private-dependency-traits, r=tgross35
avoid suggesting traits from private dependencies

fixes rust-lang/rust#142676
fixes rust-lang/rust#138191

r? ``@tgross35``
Diffstat (limited to 'library')
-rw-r--r--library/rustc-std-workspace-core/Cargo.toml8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/rustc-std-workspace-core/Cargo.toml b/library/rustc-std-workspace-core/Cargo.toml
index bd318fc2f9e..1ddc112380f 100644
--- a/library/rustc-std-workspace-core/Cargo.toml
+++ b/library/rustc-std-workspace-core/Cargo.toml
@@ -1,3 +1,5 @@
+cargo-features = ["public-dependency"]
+
 [package]
 name = "rustc-std-workspace-core"
 version = "1.99.0"
@@ -11,5 +13,7 @@ edition = "2024"
 path = "lib.rs"
 
 [dependencies]
-core = { path = "../core" }
-compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = ["compiler-builtins"] }
+core = { path = "../core", public = true }
+compiler_builtins = { path = "../compiler-builtins/compiler-builtins", features = [
+  "compiler-builtins",
+] }