Skip to content

Commit 352ff3b

Browse files
bors[bot]taiki-e
andauthored
Merge #914
914: 0.8: Prepare for the next release r=taiki-e a=taiki-e Backports #913 and CI-related patches. Changes: - crossbeam-epoch 0.8.11 -> 0.8.12 - Removes the dependency on the `once_cell` crate to restore the MSRV. (#913) - Work around [rust-lang#98302](rust-lang/rust#98302), which causes compile error on windows-gnu when LTO is enabled. (#913) - crossbeam-utils 0.8.11 -> 0.8.12 - Removes the dependency on the `once_cell` crate to restore the MSRV. (#913) - Work around [rust-lang#98302](rust-lang/rust#98302), which causes compile error on windows-gnu when LTO is enabled. (#913) Co-authored-by: Taiki Endo <[email protected]>
2 parents 1ea6c55 + f3404eb commit 352ff3b

File tree

25 files changed

+203
-84
lines changed

25 files changed

+203
-84
lines changed

.clippy.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ jobs:
5858
runs-on: ${{ matrix.os }}
5959
steps:
6060
- uses: actions/checkout@v3
61-
- name: Install Rust
62-
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
63-
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
61+
- uses: dtolnay/rust-toolchain@v1
62+
with:
63+
toolchain: ${{ matrix.rust }}
6464
- name: Install cross
6565
uses: taiki-e/install-action@cross
6666
if: matrix.target != ''
@@ -80,8 +80,9 @@ jobs:
8080
runs-on: ubuntu-latest
8181
steps:
8282
- uses: actions/checkout@v3
83-
- name: Install Rust
84-
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
83+
- uses: dtolnay/rust-toolchain@v1
84+
with:
85+
toolchain: ${{ matrix.rust }}
8586
- name: Install cargo-hack
8687
uses: taiki-e/install-action@cargo-hack
8788
- name: Check features
@@ -92,10 +93,11 @@ jobs:
9293
runs-on: ubuntu-latest
9394
steps:
9495
- uses: actions/checkout@v3
95-
- name: Install Rust
96-
run: rustup update nightly && rustup default nightly
96+
- uses: dtolnay/rust-toolchain@nightly
9797
- name: Install cargo-hack
9898
uses: taiki-e/install-action@cargo-hack
99+
- name: Install cargo-minimal-versions
100+
uses: taiki-e/install-action@cargo-minimal-versions
99101
- name: dependency tree check
100102
run: ./ci/dependencies.sh
101103

@@ -107,8 +109,7 @@ jobs:
107109
pull-requests: write
108110
steps:
109111
- uses: actions/checkout@v3
110-
- name: Install Rust
111-
run: rustup update nightly && rustup default nightly
112+
- uses: dtolnay/rust-toolchain@nightly
112113
- run: ci/no_atomic.sh
113114
- run: git add -N . && git diff --exit-code
114115
if: github.repository_owner != 'crossbeam-rs' || github.event_name != 'schedule'
@@ -140,28 +141,27 @@ jobs:
140141
runs-on: ubuntu-latest
141142
steps:
142143
- uses: actions/checkout@v3
143-
- name: Install Rust
144-
run: rustup update stable
144+
- uses: dtolnay/rust-toolchain@stable
145145
- name: rustfmt
146146
run: ./ci/rustfmt.sh
147147

148-
# Check clippy.
149-
clippy:
150-
runs-on: ubuntu-latest
151-
steps:
152-
- uses: actions/checkout@v3
153-
- name: Install Rust
154-
run: rustup update stable
155-
- name: clippy
156-
run: ./ci/clippy.sh
148+
# This branch no longer actively developed. Most commits to this
149+
# branch are backporting and should not be blocked by clippy.
150+
# # Check clippy.
151+
# clippy:
152+
# runs-on: ubuntu-latest
153+
# steps:
154+
# - uses: actions/checkout@v3
155+
# - uses: dtolnay/rust-toolchain@stable
156+
# - name: clippy
157+
# run: ./ci/clippy.sh
157158

158159
# Run miri.
159160
miri:
160161
runs-on: ubuntu-latest
161162
steps:
162163
- uses: actions/checkout@v3
163-
- name: Install Rust
164-
run: rustup toolchain install nightly --component miri && rustup default nightly
164+
- uses: dtolnay/rust-toolchain@miri
165165
- name: miri
166166
run: ./ci/miri.sh
167167

@@ -170,8 +170,7 @@ jobs:
170170
runs-on: ubuntu-latest
171171
steps:
172172
- uses: actions/checkout@v3
173-
- name: Install Rust
174-
run: rustup update nightly && rustup default nightly
173+
- uses: dtolnay/rust-toolchain@nightly
175174
- name: Run sanitizers
176175
run: ./ci/san.sh
177176

@@ -180,8 +179,7 @@ jobs:
180179
runs-on: ubuntu-latest
181180
steps:
182181
- uses: actions/checkout@v3
183-
- name: Install Rust
184-
run: rustup update stable
182+
- uses: dtolnay/rust-toolchain@stable
185183
- name: loom
186184
run: ./ci/crossbeam-epoch-loom.sh
187185

@@ -190,8 +188,7 @@ jobs:
190188
runs-on: ubuntu-latest
191189
steps:
192190
- uses: actions/checkout@v3
193-
- name: Install Rust
194-
run: rustup update nightly && rustup default nightly
191+
- uses: dtolnay/rust-toolchain@nightly
195192
- name: docs
196193
run: ./ci/docs.sh
197194

@@ -218,11 +215,12 @@ jobs:
218215
- dependencies
219216
- codegen
220217
- rustfmt
221-
- clippy
218+
# - clippy
222219
- miri
223220
- san
224221
- loom
225222
- docs
223+
- shellcheck
226224
runs-on: ubuntu-latest
227225
steps:
228226
- name: Mark the job as a success

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
- crossbeam-[0-9]+.*
1010
- crossbeam-[a-z]+-[0-9]+.*
1111

12-
env:
13-
RUSTFLAGS: -Dwarnings
14-
RUST_BACKTRACE: 1
15-
1612
defaults:
1713
run:
1814
shell: bash

ci/dependencies.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,4 @@ cargo tree
77
cargo tree --duplicate
88

99
# Check minimal versions.
10-
# Remove dev-dependencies from Cargo.toml to prevent the next `cargo update`
11-
# from determining minimal versions based on dev-dependencies.
12-
cargo hack --remove-dev-deps --workspace
13-
# Update Cargo.lock to minimal version dependencies.
14-
cargo update -Zminimal-versions
15-
cargo tree
16-
cargo hack check --all --all-features --exclude benchmarks
10+
cargo minimal-versions build --workspace --all-features --exclude benchmarks

ci/rustfmt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ cd "$(dirname "$0")"/..
55

66
rustup component add rustfmt
77

8-
cargo fmt --all -- --check
8+
cargo fmt --all --check

crossbeam-channel/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub fn bounded<T>(cap: usize) -> (Sender<T>, Receiver<T>) {
160160
/// let ms = |ms| Duration::from_millis(ms);
161161
///
162162
/// // Returns `true` if `a` and `b` are very close `Instant`s.
163-
/// let eq = |a, b| a + ms(50) > b && b + ms(50) > a;
163+
/// let eq = |a, b| a + ms(60) > b && b + ms(60) > a;
164164
///
165165
/// let start = Instant::now();
166166
/// let r = after(ms(100));

crossbeam-channel/tests/golang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! - https://golang.org/LICENSE
1010
//! - https://golang.org/PATENTS
1111
12-
#![allow(clippy::mutex_atomic, clippy::redundant_clone)]
12+
#![allow(clippy::redundant_clone)]
1313

1414
use std::alloc::{GlobalAlloc, Layout, System};
1515
use std::any::Any;

crossbeam-channel/tests/ready.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ fn default_when_disconnected() {
229229
}
230230

231231
#[test]
232+
#[cfg_attr(miri, ignore)] // this test makes timing assumptions, but Miri is so slow it violates them
232233
fn default_only() {
233234
let start = Instant::now();
234235

crossbeam-deque/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
rust_2018_idioms,
9696
unreachable_pub
9797
)]
98-
#![allow(clippy::question_mark)] // https://github.com/rust-lang/rust-clippy/issues/8281
9998
#![cfg_attr(not(feature = "std"), no_std)]
10099

101100
use cfg_if::cfg_if;

crossbeam-epoch/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 0.9.11
2+
3+
- Removes the dependency on the `once_cell` crate to restore the MSRV. (#913)
4+
- Work around [rust-lang#98302](https://github.com/rust-lang/rust/issues/98302), which causes compile error on windows-gnu when LTO is enabled. (#913)
5+
16
# Version 0.9.10
27

38
- Bump the minimum supported Rust version to 1.38. (#877)

0 commit comments

Comments
 (0)