Skip to content

Commit bc39531

Browse files
authored
Merge pull request #59 from zachs18/fix-unstable
Fix `unstable` feature.
2 parents 558ee88 + d408ad5 commit bc39531

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: MIRIFLAGS=-Zmiri-strict-provenance cargo miri test
2525
- name: Test (gecko-ffi) with Miri
2626
run: MIRIFLAGS=-Zmiri-strict-provenance cargo miri test --features=gecko-ffi
27+
- name: Test (unstable features) with Miri
28+
run: MIRIFLAGS=-Zmiri-strict-provenance cargo miri test --features=unstable
2729

2830
build:
2931
runs-on: ubuntu-latest

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
//! [pinned]: https://doc.rust-lang.org/std/pin/index.html
143143
144144
#![cfg_attr(not(feature = "std"), no_std)]
145+
#![cfg_attr(feature = "unstable", feature(trusted_len))]
145146
#![allow(clippy::comparison_chain, clippy::missing_safety_doc)]
146147

147148
extern crate alloc;
@@ -2052,7 +2053,6 @@ impl<T: Clone> From<&[T]> for ThinVec<T> {
20522053
}
20532054
}
20542055

2055-
#[cfg(not(no_global_oom_handling))]
20562056
impl<T: Clone> From<&mut [T]> for ThinVec<T> {
20572057
/// Allocate a `ThinVec<T>` and fill it by cloning `s`'s items.
20582058
///

0 commit comments

Comments
 (0)