Skip to content

Commit 5b70186

Browse files
authored
Merge pull request #129 from Rust-for-Linux/dev/1.85
bump minimum Rust version to 1.82
2 parents f2f676b + 48455dc commit 5b70186

20 files changed

Lines changed: 3 additions & 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.82.. \
328328
--clean-per-version \
329329
check \
330330
--locked \

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- `[pin_]init!` now supports attributes on fields (such as `#[cfg(...)]`).
2929
- Add a `#[default_error(<type>)]` attribute to `[pin_]init!` to override the
3030
default error (when no `? Error` is specified).
31+
- Minimum Rust version is bumped to 1.82.
3132

3233
### Removed
3334

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "pin-init"
33
version = "0.0.10"
44
edition = "2021"
5+
rust-version = "1.82"
56

67
authors = [
78
"Benno Lossin <lossin@kernel.org>",

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))]

0 commit comments

Comments
 (0)