Skip to content

Commit 12dc789

Browse files
committed
Add libc to [workspace.dependencies].
1 parent 7506000 commit 12dc789

File tree

11 files changed

+13
-12
lines changed

11 files changed

+13
-12
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ exclude = [
6363
# tidy-alphabetical-start
6464
bitflags = "2.9.3"
6565
itertools = "0.12.1"
66+
# FIXME: Remove this pin once this rustix issue is resolved
67+
# https://github.com/bytecodealliance/rustix/issues/1496
68+
libc = "=0.2.174"
6669
memchr = "2.7.5"
6770
rustc-literal-escaper = "0.0.5"
6871
thin-vec = "0.2.14"

compiler/rustc_codegen_llvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bitflags.workspace = true
1313
# by `rustc_codegen_ssa` via its `thorin-dwp` dependency.
1414
gimli = "0.31"
1515
itertools.workspace = true
16-
libc = "0.2"
16+
libc.workspace = true
1717
measureme = "12.0.1"
1818
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
1919
rustc-demangle = "0.1.21"

compiler/rustc_codegen_ssa/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ wasm-encoder = "0.219"
4848

4949
[target.'cfg(unix)'.dependencies]
5050
# tidy-alphabetical-start
51-
libc = "0.2.50"
51+
libc.workspace = true
5252
# tidy-alphabetical-end
5353

5454
[dependencies.object]

compiler/rustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ features = [
4747

4848
[target.'cfg(unix)'.dependencies]
4949
# tidy-alphabetical-start
50-
libc = "0.2"
50+
libc.workspace = true
5151
# tidy-alphabetical-end
5252

5353
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

compiler/rustc_driver_impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tracing.workspace = true
5656

5757
[target.'cfg(all(unix, any(target_env = "gnu", target_os = "macos")))'.dependencies]
5858
# tidy-alphabetical-start
59-
libc = "0.2"
59+
libc.workspace = true
6060
# tidy-alphabetical-end
6161

6262
[target.'cfg(windows)'.dependencies.windows]

compiler/rustc_llvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8-
libc = "0.2.73"
8+
libc.workspace = true
99
# tidy-alphabetical-end
1010

1111
[build-dependencies]

compiler/rustc_metadata/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ tracing.workspace = true
3636

3737
[target.'cfg(target_os = "aix")'.dependencies]
3838
# tidy-alphabetical-start
39-
libc = "0.2"
39+
libc.workspace = true
4040
# tidy-alphabetical-end

compiler/rustc_session/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ tracing.workspace = true
2727
# tidy-alphabetical-end
2828

2929
[target.'cfg(unix)'.dependencies]
30-
# FIXME: Remove this pin once this rustix issue is resolved
31-
# https://github.com/bytecodealliance/rustix/issues/1496
3230
# tidy-alphabetical-start
33-
libc = "=0.2.174"
31+
libc.workspace = true
3432
# tidy-alphabetical-end
3533

3634
[target.'cfg(windows)'.dependencies.windows]

compiler/rustc_thread_pool/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rand_xorshift = "0.4"
2323
scoped-tls = "1.0"
2424

2525
[target.'cfg(unix)'.dev-dependencies]
26-
libc = "0.2"
26+
libc.workspace = true
2727

2828
[[test]]
2929
name = "stack_overflow_crash"

src/tools/compiletest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ walkdir = "2"
3535
# tidy-alphabetical-end
3636

3737
[target.'cfg(unix)'.dependencies]
38-
libc = "0.2"
38+
libc.workspace = true
3939

4040
[target.'cfg(windows)'.dependencies]
4141
miow = "0.6"

0 commit comments

Comments
 (0)