Skip to content

Commit 8ea5451

Browse files
committed
bump minimum Rust version to 1.85
Following the kernel minimum version bump in f32fb9c58a5b ("rust: bump Rust minimum supported version to 1.85.0 (Debian Trixie)"), pin-init can bump its minimum version to 1.85, too. This removes the `lint_reasons` feature which is stabilized in 1.81 and the `raw_ref_ops` and `new_uninit` features which are stabilized in 1.82. Signed-off-by: Gary Guo <gary@garyguo.net>
1 parent fd7110d commit 8ea5451

18 files changed

Lines changed: 1 addition & 40 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jobs:
324324
cargo hack \
325325
--clean-per-run \
326326
--feature-powerset \
327-
--version-range 1.78.. \
327+
--version-range 1.85.. \
328328
--clean-per-version \
329329
check \
330330
--locked \

examples/big_struct_in_place.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
22

3-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
4-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
5-
63
use pin_init::*;
74

85
// Struct with size over 1GiB

examples/linked_list.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#![allow(clippy::undocumented_unsafe_blocks)]
44
#![cfg_attr(feature = "alloc", feature(allocator_api))]
5-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
6-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
75

86
use core::{
97
cell::Cell,

examples/mutex.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#![allow(clippy::undocumented_unsafe_blocks)]
44
#![cfg_attr(feature = "alloc", feature(allocator_api))]
5-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
6-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
75
#![allow(clippy::missing_safety_doc)]
86

97
use core::{

examples/pthread_mutex.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// inspired by <https://github.com/nbdd0121/pin-init/blob/trunk/examples/pthread_mutex.rs>
44
#![allow(clippy::undocumented_unsafe_blocks)]
55
#![cfg_attr(feature = "alloc", feature(allocator_api))]
6-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
7-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
86

97
#[cfg(not(windows))]
108
mod pthread_mtx {

examples/static_init.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#![allow(clippy::undocumented_unsafe_blocks)]
44
#![cfg_attr(feature = "alloc", feature(allocator_api))]
5-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
6-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
75
#![allow(unused_imports)]
86

97
use core::{

internal/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
//! `pin-init` proc macros.
88
9-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
109
// Documentation is done in the pin-init crate instead.
1110
#![allow(missing_docs)]
1211

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@
263263
//! [`impl Init<T, E>`]: crate::Init
264264
//! [Rust-for-Linux]: https://rust-for-linux.com/
265265
266-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
267-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
268-
#![cfg_attr(
269-
all(any(feature = "alloc", feature = "std"), USE_RUSTC_FEATURES),
270-
feature(new_uninit)
271-
)]
272266
#![forbid(missing_docs, unsafe_op_in_unsafe_fn)]
273267
#![cfg_attr(not(feature = "std"), no_std)]
274268
#![cfg_attr(feature = "alloc", feature(allocator_api))]

tests/alloc_fail.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![cfg_attr(feature = "alloc", feature(allocator_api))]
2-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
32

43
#[test]
54
#[cfg(feature = "alloc")]

tests/cfgs.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![cfg_attr(USE_RUSTC_FEATURES, feature(lint_reasons))]
2-
#![cfg_attr(USE_RUSTC_FEATURES, feature(raw_ref_op))]
3-
41
use pin_init::{pin_data, pin_init, PinInit};
52

63
#[pin_data]

0 commit comments

Comments
 (0)