Skip to content

Commit eccfe7a

Browse files
authored
Merge pull request #4070 from tgross35/main-cherry-picks
[main] Cherry picks from 0.2
2 parents d6cd3c6 + e855f2f commit eccfe7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1419
-1658
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.2.151"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
7+
edition = "2015"
78
repository = "https://github.com/rust-lang/libc"
89
homepage = "https://github.com/rust-lang/libc"
910
documentation = "https://docs.rs/libc/"
@@ -138,8 +139,7 @@ rustc-std-workspace-core = { version = "1.0.0", optional = true }
138139
[features]
139140
default = ["std"]
140141
std = []
141-
align = []
142-
rustc-dep-of-std = ['align', 'rustc-std-workspace-core']
142+
rustc-dep-of-std = ["rustc-std-workspace-core"]
143143
extra_traits = []
144144
const-extern-fn = []
145145

libc-test/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ctest2 = "0.4.3"
2424
[features]
2525
default = ["std"]
2626
std = ["libc/std"]
27-
align = ["libc/align"]
2827
extra_traits = ["libc/extra_traits"]
2928

3029
[[test]]

libc-test/build.rs

+9-12
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ fn test_apple(target: &str) {
318318
// FIXME: Requires the macOS 14.4 SDK.
319319
"os_sync_wake_by_address_flags_t" | "os_sync_wait_on_address_flags_t" => true,
320320

321+
// FIXME: "'__uint128' undeclared" in C
322+
"__uint128" => true,
323+
321324
_ => false,
322325
}
323326
});
@@ -379,8 +382,7 @@ fn test_apple(target: &str) {
379382
// FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]).
380383
("statfs", "f_reserved") => true,
381384
("__darwin_arm_neon_state64", "__v") => true,
382-
// MAXPATHLEN is too big for auto-derive traits on arrays.
383-
("vnode_info_path", "vip_path") => true,
385+
384386
("ifreq", "ifr_ifru") => true,
385387
("in6_ifreq", "ifr_ifru") => true,
386388
("ifkpi", "ifk_data") => true,
@@ -1798,12 +1800,13 @@ fn test_android(target: &str) {
17981800
// These are tested in the `linux_elf.rs` file.
17991801
"Elf64_Phdr" | "Elf32_Phdr" => true,
18001802

1801-
// FIXME: Somehow fails to test after removing cfg hacks:
1802-
"__uint128" => true,
1803-
18041803
// These are intended to be opaque
18051804
"posix_spawn_file_actions_t" => true,
18061805
"posix_spawnattr_t" => true,
1806+
1807+
// FIXME: "'__uint128' undeclared" in C
1808+
"__uint128" => true,
1809+
18071810
_ => false,
18081811
}
18091812
});
@@ -2688,8 +2691,6 @@ fn test_freebsd(target: &str) {
26882691
("umutex", "m_owner") => true,
26892692
// c_has_waiters field is a volatile int32_t
26902693
("ucond", "c_has_waiters") => true,
2691-
// is PATH_MAX long but tests can't accept multi array as equivalent.
2692-
("kinfo_vmentry", "kve_path") => true,
26932694

26942695
// a_un field is a union
26952696
("Elf32_Auxinfo", "a_un") => true,
@@ -2718,10 +2719,6 @@ fn test_freebsd(target: &str) {
27182719
// Anonymous type.
27192720
("filestat", "next") => true,
27202721

2721-
// We ignore this field because we needed to use a hack in order to make rust 1.19
2722-
// happy...
2723-
("kinfo_proc", "ki_sparestrings") => true,
2724-
27252722
// `__sem_base` is a private struct field
27262723
("semid_ds", "__sem_base") => true,
27272724

@@ -3659,7 +3656,7 @@ fn test_linux(target: &str) {
36593656
"priority_t" if musl => true,
36603657
"name_t" if musl => true,
36613658

3662-
// FIXME: Somehow fails to test after removing cfg hacks:
3659+
// FIXME: "'__uint128' undeclared" in C
36633660
"__uint128" => true,
36643661

36653662
t => {

src/fuchsia/align.rs

-142
This file was deleted.

0 commit comments

Comments
 (0)