Skip to content

Commit c6ad434

Browse files
authored
Merge pull request #4315 from tgross35/backport-porcini
[0.2] Backports
2 parents 7ac4575 + 5726b3c commit c6ad434

File tree

44 files changed

+4075
-202
lines changed

Some content is hidden

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

44 files changed

+4075
-202
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: Setup Rust toolchain
25-
run: ./ci/install-rust.sh
25+
run: ./ci/install-rust.sh && rustup component add rustfmt
2626
- name: Check style
2727
run: ./ci/style.sh
2828

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const CHECK_CFG_EXTRA: &'static [(&'static str, &'static [&'static str])] = &[
2727
(
2828
"target_os",
2929
&[
30-
"switch", "aix", "ohos", "hurd", "rtems", "visionos", "nuttx",
30+
"switch", "aix", "ohos", "hurd", "rtems", "visionos", "nuttx", "cygwin",
3131
],
3232
),
3333
("target_env", &["illumos", "wasi", "aix", "ohos"]),

ci/install-rust.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ "$os" = "windows" ] && [ -n "${TARGET:-}" ]; then
2424
fi
2525

2626
rustup set profile minimal
27-
rustup update --force "$toolchain"
27+
rustup update --force "$toolchain" --no-self-update
2828
rustup default "$toolchain"
2929

3030
if [ -n "${TARGET:-}" ]; then

ci/style.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
set -eux
44

5-
if [ -n "${CI:-}" ]; then
6-
rustup toolchain install nightly -c rustfmt --allow-downgrade
7-
rustup override set nightly
8-
9-
check="--check"
10-
fi
5+
[ -n "${CI:-}" ] && check="--check"
116

127
cargo test --manifest-path libc-test/Cargo.toml --test style -- --nocapture
138

0 commit comments

Comments
 (0)