Skip to content

Commit 8bf0a5c

Browse files
authored
Merge branch 'rust-lang:main' into main
2 parents 87c577e + 9593176 commit 8bf0a5c

File tree

53 files changed

+1992
-1287
lines changed

Some content is hidden

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

53 files changed

+1992
-1287
lines changed

.github/workflows/bors.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ jobs:
156156
sparc64-unknown-linux-gnu,
157157
wasm32-unknown-emscripten,
158158
x86_64-linux-android,
159-
x86_64-unknown-linux-gnux32,
159+
# FIXME: Exec format error (os error 8)
160+
#x86_64-unknown-linux-gnux32,
160161
x86_64-unknown-linux-musl,
161162
# FIXME: It seems some items in `src/unix/mod.rs`
162163
# aren't defined on redox actually.
@@ -237,7 +238,9 @@ jobs:
237238
stable,
238239
beta,
239240
nightly,
240-
1.13.0,
241+
# FIXME: Disabled due to:
242+
# error: failed to parse registry's information for: serde
243+
#1.13.0,
241244
1.19.0,
242245
1.24.0,
243246
1.25.0,
@@ -270,7 +273,9 @@ jobs:
270273
- { toolchain: beta, os: macos-12 }
271274
- { toolchain: nightly, os: macos-12 }
272275
# Use macOS 11 for older toolchains as newer Xcode donesn't work well.
273-
- { toolchain: 1.13.0, os: macos-11 }
276+
# FIXME: Disabled due to:
277+
# error: failed to parse registry's information for: serde
278+
#- { toolchain: 1.13.0, os: macos-11 }
274279
- { toolchain: 1.19.0, os: macos-11 }
275280
- { toolchain: 1.24.0, os: macos-11 }
276281
- { toolchain: 1.25.0, os: macos-11 }

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libc"
3-
version = "0.2.147"
3+
version = "0.2.148"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
@@ -84,6 +84,7 @@ targets = [
8484
"riscv32imac-unknown-none-elf",
8585
"riscv32imc-unknown-none-elf",
8686
"riscv64gc-unknown-freebsd",
87+
"riscv64gc-unknown-hermit",
8788
"riscv64gc-unknown-linux-gnu",
8889
"riscv64gc-unknown-linux-musl",
8990
"riscv64gc-unknown-none-elf",

ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ riscv32imac-unknown-none-elf \
253253
riscv32imc-unknown-none-elf \
254254
riscv32gc-unknown-linux-gnu \
255255
riscv64gc-unknown-freebsd \
256+
riscv64gc-unknown-hermit \
256257
riscv64gc-unknown-linux-musl \
257258
riscv64gc-unknown-none-elf \
258259
riscv64imac-unknown-none-elf \
@@ -285,7 +286,6 @@ if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
285286
fi
286287

287288
RUST_APPLE_NO_CORE_TARGETS="\
288-
armv7-apple-ios \
289289
armv7s-apple-ios \
290290
i686-apple-darwin \
291291
i386-apple-ios \

ci/emscripten-entry.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ set -ex
55
# shellcheck disable=SC1091
66
source /emsdk-portable/emsdk_env.sh &> /dev/null
77

8-
# emsdk-portable provides a node binary, but we need version 8 to run wasm
9-
# NOTE: Do not forget to sync Node.js version with `emscripten.sh`!
10-
export PATH="/node-v14.17.0-linux-x64/bin:$PATH"
11-
128
exec "$@"

ci/emscripten.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ rm -f a.*
2020

2121
# Make emsdk usable by any user
2222
chmod a+rxw -R /emsdk-portable
23-
24-
# node 8 is required to run wasm
25-
# NOTE: Do not forget to sync Node.js version with `emscripten-entry.sh`!
26-
cd /
27-
curl --retry 5 -L https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz | \
28-
tar -xJ

libc-test/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libc-test"
3-
version = "0.2.147"
3+
version = "0.2.148"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
build = "build.rs"
@@ -12,7 +12,7 @@ A test crate for the libc crate.
1212

1313
[dependencies.libc]
1414
path = ".."
15-
version = "0.2.147"
15+
version = "0.2.148"
1616
default-features = false
1717

1818
[build-dependencies]

libc-test/build.rs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,6 +1881,9 @@ fn test_android(target: &str) {
18811881
// Added in API level 28, but some tests use level 24.
18821882
"syncfs" => true,
18831883

1884+
// Added in API level 28, but some tests use level 24.
1885+
"pthread_attr_getinheritsched" | "pthread_attr_setinheritsched" => true,
1886+
18841887
_ => false,
18851888
}
18861889
});
@@ -2625,13 +2628,19 @@ fn test_emscripten(target: &str) {
26252628

26262629
"os_unfair_lock" => "struct os_unfair_lock_s".to_string(),
26272630

2628-
t if is_union => format!("union {}", t),
2631+
// LFS64 types have been removed in Emscripten 3.1.44+
2632+
// https://github.com/emscripten-core/emscripten/pull/19812
2633+
"off64_t" => "off_t".to_string(),
26292634

2635+
// typedefs don't need any keywords
26302636
t if t.ends_with("_t") => t.to_string(),
26312637

26322638
// put `struct` in front of all structs:.
26332639
t if is_struct => format!("struct {}", t),
26342640

2641+
// put `union` in front of all unions:
2642+
t if is_union => format!("union {}", t),
2643+
26352644
t => t.to_string(),
26362645
}
26372646
});
@@ -2658,7 +2667,9 @@ fn test_emscripten(target: &str) {
26582667
// FIXME: The size has been changed due to musl's time64
26592668
"time_t" => true,
26602669

2661-
_ => false,
2670+
// LFS64 types have been removed in Emscripten 3.1.44+
2671+
// https://github.com/emscripten-core/emscripten/pull/19812
2672+
t => t.ends_with("64") || t.ends_with("64_t"),
26622673
}
26632674
});
26642675

@@ -2687,7 +2698,9 @@ fn test_emscripten(target: &str) {
26872698
"utimbuf" | "timeval" | "timespec" | "rusage" | "itimerval" | "sched_param"
26882699
| "stat" | "stat64" | "shmid_ds" | "msqid_ds" => true,
26892700

2690-
_ => false,
2701+
// LFS64 types have been removed in Emscripten 3.1.44+
2702+
// https://github.com/emscripten-core/emscripten/pull/19812
2703+
ty => ty.ends_with("64") || ty.ends_with("64_t"),
26912704
}
26922705
});
26932706

@@ -2729,6 +2742,10 @@ fn test_emscripten(target: &str) {
27292742
| "SIG_IGN" // -1
27302743
=> true,
27312744

2745+
// LFS64 types have been removed in Emscripten 3.1.44+
2746+
// https://github.com/emscripten-core/emscripten/pull/19812
2747+
n if n.starts_with("RLIM64") => true,
2748+
27322749
_ => false,
27332750
}
27342751
});
@@ -3791,6 +3808,9 @@ fn test_linux(target: &str) {
37913808
| "MADV_POPULATE_WRITE"
37923809
if musl => true,
37933810

3811+
// kernel 6.1 minimum
3812+
"MADV_COLLAPSE" => true,
3813+
37943814
// FIXME: Requires more recent kernel headers
37953815
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
37963816
| "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+

libc-test/semver/android-aarch64.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ HWCAP2_SVEBITPERM
77
HWCAP2_SVEPMULL
88
HWCAP2_SVESHA3
99
HWCAP2_SVESM4
10+
PROT_BTI
11+
PROT_MTE
1012
SYS_arch_specific_syscall
1113
SYS_syscalls
1214
SYS_fcntl

libc-test/semver/android.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,8 +3375,10 @@ pthread_atfork
33753375
pthread_attr_destroy
33763376
pthread_attr_getguardsize
33773377
pthread_attr_getstack
3378+
pthread_attr_getstacksize
33783379
pthread_attr_init
33793380
pthread_attr_setdetachstate
3381+
pthread_attr_setguardsize
33803382
pthread_attr_setstacksize
33813383
pthread_attr_t
33823384
pthread_barrierattr_destroy

0 commit comments

Comments
 (0)