Skip to content

Commit 112a387

Browse files
committed
Raise required compiler to Rust 1.60
1 parent 006b485 commit 112a387

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ jobs:
101101
- run: cargo test --test test_size --no-default-features --features span-locations
102102

103103
msrv:
104-
name: Rust 1.56.0
104+
name: Rust 1.60.0
105105
needs: pre_ci
106106
if: needs.pre_ci.outputs.continue
107107
runs-on: ubuntu-latest
108108
timeout-minutes: 45
109109
steps:
110110
- uses: actions/checkout@v5
111-
- uses: dtolnay/rust-toolchain@1.56.0
111+
- uses: dtolnay/rust-toolchain@1.60.0
112112
with:
113113
components: rust-src
114114
- run: cargo check

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2021"
1010
keywords = ["macros", "syn"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/proc-macro2"
13-
rust-version = "1.56"
13+
rust-version = "1.60"
1414

1515
[package.metadata.docs.rs]
1616
rustc-args = ["--cfg=procmacro2_semver_exempt"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ proc-macro2 by default.
6262

6363
To opt into the additional APIs available in the most recent nightly compiler,
6464
the `procmacro2_semver_exempt` config flag must be passed to rustc. We will
65-
polyfill those nightly-only APIs back to Rust 1.56.0. As these are unstable APIs
65+
polyfill those nightly-only APIs back to Rust 1.60.0. As these are unstable APIs
6666
that track the nightly compiler, minor versions of proc-macro2 may make breaking
6767
changes to them at any time.
6868

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(unknown_lints)]
22
#![allow(unexpected_cfgs)]
3+
#![allow(clippy::uninlined_format_args)]
34

45
use std::env;
56
use std::ffi::OsString;

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
//!
6464
//! To opt into the additional APIs available in the most recent nightly
6565
//! compiler, the `procmacro2_semver_exempt` config flag must be passed to
66-
//! rustc. We will polyfill those nightly-only APIs back to Rust 1.56.0. As
66+
//! rustc. We will polyfill those nightly-only APIs back to Rust 1.60.0. As
6767
//! these are unstable APIs that track the nightly compiler, minor versions of
6868
//! proc-macro2 may make breaking changes to them at any time.
6969
//!
@@ -110,6 +110,7 @@
110110
clippy::return_self_not_must_use,
111111
clippy::shadow_unrelated,
112112
clippy::trivially_copy_pass_by_ref,
113+
clippy::uninlined_format_args,
113114
clippy::unnecessary_wraps,
114115
clippy::unused_self,
115116
clippy::used_underscore_binding,

tests/comments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::assertions_on_result_states)]
1+
#![allow(clippy::assertions_on_result_states, clippy::uninlined_format_args)]
22

33
use proc_macro2::{Delimiter, Literal, Spacing, TokenStream, TokenTree};
44

tests/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
clippy::needless_pass_by_value,
55
clippy::needless_raw_string_hashes,
66
clippy::non_ascii_literal,
7-
clippy::octal_escapes
7+
clippy::octal_escapes,
8+
clippy::uninlined_format_args
89
)]
910

1011
use proc_macro2::{Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};

0 commit comments

Comments
 (0)