Skip to content

Commit 899f599

Browse files
johnb8emilio
authored andcommitted
Update latest stable rust to 1.40 and give non_exhaustive feature
1 parent d4e4a99 commit 899f599

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/features.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ macro_rules! rust_target_base {
120120
/// Rust stable 1.36
121121
/// * `MaybeUninit` instead of `mem::uninitialized()` ([PR](https://github.com/rust-lang/rust/pull/60445))
122122
=> Stable_1_36 => 1.36;
123+
/// Rust stable 1.40
124+
/// * `non_exhaustive` enums/structs ([Tracking issue](https://github.com/rust-lang/rust/issues/44109))
125+
=> Stable_1_40 => 1.40;
123126
/// Nightly rust
124127
/// * `thiscall` calling convention ([Tracking issue](https://github.com/rust-lang/rust/issues/42202))
125-
/// * `non_exhaustive` enums/structs ([Tracking issue](https://github.com/rust-lang/rust/issues/44109))
126128
=> Nightly => nightly;
127129
);
128130
}
@@ -132,7 +134,7 @@ rust_target_base!(rust_target_def);
132134
rust_target_base!(rust_target_values_def);
133135

134136
/// Latest stable release of Rust
135-
pub const LATEST_STABLE_RUST: RustTarget = RustTarget::Stable_1_36;
137+
pub const LATEST_STABLE_RUST: RustTarget = RustTarget::Stable_1_40;
136138

137139
/// Create RustFeatures struct definition, new(), and a getter for each field
138140
macro_rules! rust_feature_def {
@@ -217,9 +219,11 @@ rust_feature_def!(
217219
Stable_1_36 {
218220
=> maybe_uninit;
219221
}
222+
Stable_1_40 {
223+
=> non_exhaustive;
224+
}
220225
Nightly {
221226
=> thiscall_abi;
222-
=> non_exhaustive;
223227
}
224228
);
225229

0 commit comments

Comments
 (0)