Skip to content

Commit 000279d

Browse files
committed
Bump MSRV from 1.40 to 1.42, fix clippy::match_like_matches_macro
1 parent 3e80557 commit 000279d

File tree

8 files changed

+10
-16
lines changed

8 files changed

+10
-16
lines changed

.github/bors.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ delete_merged_branches = true
33
required_approvals = 1
44
status = [
55
"ci-linux (stable)",
6-
"ci-linux (1.40.0)",
6+
"ci-linux (1.42.0)",
77
"rt-ci-linux (stable)",
8-
"rt-ci-linux (1.40.0)",
8+
"rt-ci-linux (1.42.0)",
99
"rt-ci-other-os (macOS-latest)",
1010
"rt-ci-other-os (windows-latest)",
1111
"rustfmt",

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
include:
1818
# Test MSRV
19-
- rust: 1.40.0
19+
- rust: 1.42.0
2020

2121
# Test nightly but don't fail
2222
- rust: nightly

.github/workflows/rt-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
# All generated code should be running on stable now
15-
rust: [nightly, stable, 1.40.0]
15+
rust: [nightly, stable, 1.42.0]
1616

1717
include:
1818
# Nightly is only for reference and allowed to fail

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is developed and maintained by the [Cortex-M team][team].
1111

1212
## Minimum Supported Rust Version (MSRV)
1313

14-
This crate is guaranteed to compile on stable Rust 1.40 and up. It might compile with older versions but that may change in any new patch release.
14+
This crate is guaranteed to compile on stable Rust 1.42 and up. It might compile with older versions but that may change in any new patch release.
1515

1616
## License
1717

cortex-m-rt/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is developed and maintained by the [Cortex-M team][team].
1111

1212
# Minimum Supported Rust Version (MSRV)
1313

14-
This crate is guaranteed to compile on stable Rust 1.40.0 and up. It *might*
14+
This crate is guaranteed to compile on stable Rust 1.42.0 and up. It *might*
1515
compile with older versions but that may change in any new patch release.
1616

1717
# License

cortex-m-rt/macros/src/lib.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
2828
&& f.sig.variadic.is_none()
2929
&& match f.sig.output {
3030
ReturnType::Default => false,
31-
ReturnType::Type(_, ref ty) => match **ty {
32-
Type::Never(_) => true,
33-
_ => false,
34-
},
31+
ReturnType::Type(_, ref ty) => matches!(**ty, Type::Never(_)),
3532
};
3633

3734
if !valid_signature {
@@ -252,10 +249,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
252249
&& f.sig.variadic.is_none()
253250
&& match f.sig.output {
254251
ReturnType::Default => false,
255-
ReturnType::Type(_, ref ty) => match **ty {
256-
Type::Never(_) => true,
257-
_ => false,
258-
},
252+
ReturnType::Type(_, ref ty) => matches!(**ty, Type::Never(_)),
259253
};
260254

261255
if !valid_signature {

cortex-m-rt/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@
418418
//!
419419
//! # Minimum Supported Rust Version (MSRV)
420420
//!
421-
//! The MSRV of this release is Rust 1.40.0.
421+
//! The MSRV of this release is Rust 1.42.0.
422422
423423
// # Developer notes
424424
//

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
//!
5353
//! # Minimum Supported Rust Version (MSRV)
5454
//!
55-
//! This crate is guaranteed to compile on stable Rust 1.40 and up. It *might*
55+
//! This crate is guaranteed to compile on stable Rust 1.42 and up. It *might*
5656
//! compile with older versions but that may change in any new patch release.
5757
5858
#![cfg_attr(feature = "inline-asm", feature(asm))]

0 commit comments

Comments
 (0)