Skip to content

Commit a971238

Browse files
committed
std_detect: Use rustc-std-workspace-* to pull in compiler-builtins
#145489 changed `std_detect` to no longer depend on `cfg-if`, which meant it no longer indirectly pulled in `rustc-std-workspace-core` via `cfg-if`. That caused it to no longer depend on `compiler-builtins`. Change `std_detect` to use `rustc-std-workspace-core` and `rustc-std-workspace-alloc`, to integrate with the rustc workspace. This also pulls in `compiler-builtins` via `rustc-std-workspace-core`. Closes: #145594
1 parent 8c32e31 commit a971238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std_detect/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ is-it-maintained-open-issues = { repository = "rust-lang/stdarch" }
2121
maintenance = { status = "experimental" }
2222

2323
[dependencies]
24-
core = { path = "../core" }
25-
alloc = { path = "../alloc" }
24+
core = { version = "1.0.0", package = 'rustc-std-workspace-core' }
25+
alloc = { version = "1.0.0", package = 'rustc-std-workspace-alloc' }
2626

2727
[target.'cfg(not(windows))'.dependencies]
2828
libc = { version = "0.2.0", optional = true, default-features = false }

0 commit comments

Comments
 (0)