Skip to content

Commit e08b21c

Browse files
bors[bot]taiki-e
andauthored
Merge #577
577: Update cfg-if to 1 r=taiki-e a=taiki-e Co-authored-by: Taiki Endo <te316e89@gmail.com>
2 parents 2444749 + 6217abf commit e08b21c

File tree

14 files changed

+21
-7
lines changed

14 files changed

+21
-7
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ alloc = ["crossbeam-epoch/alloc", "crossbeam-queue/alloc"]
4242
nightly = ["crossbeam-epoch/nightly", "crossbeam-utils/nightly", "crossbeam-queue/nightly"]
4343

4444
[dependencies]
45-
cfg-if = "0.1.10"
45+
cfg-if = "1"
4646

4747
[dependencies.crossbeam-channel]
4848
version = "0.4"

crossbeam-channel/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ default = ["std"]
2424
std = ["crossbeam-utils/std"]
2525

2626
[dependencies]
27-
cfg-if = "0.1.10"
27+
cfg-if = "1"
2828

2929
[dependencies.crossbeam-utils]
3030
version = "0.7"

crossbeam-channel/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@
330330
))]
331331
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
332332
#![cfg_attr(not(feature = "std"), no_std)]
333+
// matches! requires Rust 1.42
334+
#![allow(clippy::match_like_matches_macro)]
333335

334336
use cfg_if::cfg_if;
335337

crossbeam-deque/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ default = ["std"]
2424
std = ["crossbeam-epoch/std", "crossbeam-utils/std"]
2525

2626
[dependencies]
27-
cfg-if = "0.1.10"
27+
cfg-if = "1"
2828

2929
[dependencies.crossbeam-epoch]
3030
version = "0.8"

crossbeam-deque/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
))]
9292
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
9393
#![cfg_attr(not(feature = "std"), no_std)]
94+
// matches! requires Rust 1.42
95+
#![allow(clippy::match_like_matches_macro)]
9496

9597
use cfg_if::cfg_if;
9698

crossbeam-epoch/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ nightly = ["crossbeam-utils/nightly"]
3737
sanitize = [] # Makes it more likely to trigger any potential data races.
3838

3939
[dependencies]
40-
cfg-if = "0.1.10"
40+
cfg-if = "1"
4141
const_fn = "0.4"
4242
memoffset = "0.5.4"
4343

crossbeam-epoch/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
#![cfg_attr(not(feature = "std"), no_std)]
6060
#![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]
6161
#![cfg_attr(feature = "nightly", feature(const_fn))]
62+
// matches! requires Rust 1.42
63+
#![allow(clippy::match_like_matches_macro)]
6264

6365
use cfg_if::cfg_if;
6466

crossbeam-queue/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ alloc = []
3434
nightly = ["crossbeam-utils/nightly"]
3535

3636
[dependencies]
37-
cfg-if = "0.1.10"
37+
cfg-if = "1"
3838

3939
[dependencies.crossbeam-utils]
4040
version = "0.7"

crossbeam-queue/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
1616
#![cfg_attr(not(feature = "std"), no_std)]
1717
#![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]
18+
// matches! requires Rust 1.42
19+
#![allow(clippy::match_like_matches_macro)]
1820

1921
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
2022
cfg_if::cfg_if! {

crossbeam-skiplist/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ alloc = ["crossbeam-epoch/alloc"]
3434
nightly = ["crossbeam-epoch/nightly", "crossbeam-utils/nightly"]
3535

3636
[dependencies]
37-
cfg-if = "0.1.10"
37+
cfg-if = "1"
3838

3939
[dependencies.crossbeam-epoch]
4040
version = "0.8"

crossbeam-skiplist/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
1111
#![cfg_attr(not(feature = "std"), no_std)]
1212
#![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]
13+
// matches! requires Rust 1.42
14+
#![allow(clippy::match_like_matches_macro)]
1315

1416
use cfg_if::cfg_if;
1517

crossbeam-utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ std = ["lazy_static"]
3030
nightly = []
3131

3232
[dependencies]
33-
cfg-if = "0.1.10"
33+
cfg-if = "1"
3434
const_fn = "0.4"
3535
lazy_static = { version = "1.4.0", optional = true }
3636

crossbeam-utils/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
3535
#![cfg_attr(not(feature = "std"), no_std)]
3636
#![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]
37+
// matches! requires Rust 1.42
38+
#![allow(clippy::match_like_matches_macro)]
3739

3840
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
3941
pub mod atomic;

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
4949
#![cfg_attr(not(feature = "std"), no_std)]
5050
#![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))]
51+
// matches! requires Rust 1.42
52+
#![allow(clippy::match_like_matches_macro)]
5153

5254
#[cfg_attr(feature = "nightly", cfg(target_has_atomic = "ptr"))]
5355
pub use crossbeam_utils::atomic;

0 commit comments

Comments
 (0)