Skip to content

Commit 410e6e6

Browse files
committed
Fixed "adt_const_marker" crate feature
1 parent fb1d449 commit 410e6e6

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Replaced `typewit::const_marker::BoolWit` enum with type alias to `BoolWitG``
1010

1111
Added `Copy + Clone + Debug` impls to `BoolWit`
1212

13+
Fixed `"adt_const_marker"` crate feature
1314

1415
### 1.9.0
1516

src/const_marker/slice_const_markers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ super::declare_const_param_type! {
1616
///
1717
/// ```rust
1818
/// #![feature(adt_const_params)]
19+
/// #![feature(unsized_const_params)]
1920
///
2021
/// use typewit::{const_marker::Str, MakeTypeWitness};
2122
///

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@
454454
#![no_std]
455455
#![cfg_attr(feature = "nightly_mut_refs", feature(const_mut_refs))]
456456
#![cfg_attr(feature = "adt_const_marker", feature(adt_const_params))]
457+
#![cfg_attr(feature = "adt_const_marker", feature(unsized_const_params))]
457458
#![cfg_attr(feature = "adt_const_marker", allow(incomplete_features))]
458459
#![cfg_attr(feature = "docsrs", feature(doc_cfg))]
459460
#![allow(clippy::type_complexity)]

src/type_eq.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ mod type_eq_ {
297297
// Declared to work around this error in old Rust versions:
298298
// > error[E0658]: function pointers cannot appear in constant functions
299299
struct TypeEqHelper<L: ?Sized, R: ?Sized>(
300+
#[allow(dead_code)]
300301
fn(PhantomData<L>) -> PhantomData<L>,
302+
#[allow(dead_code)]
301303
fn(PhantomData<R>) -> PhantomData<R>,
302304
);
303305

src/type_ne_.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ mod type_ne_ {
8686
// Declared to work around this error in old Rust versions:
8787
// > error[E0658]: function pointers cannot appear in constant functions
8888
struct TypeNeHelper<L: ?Sized, R: ?Sized>(
89+
#[allow(dead_code)]
8990
fn(PhantomData<L>) -> PhantomData<L>,
91+
#[allow(dead_code)]
9092
fn(PhantomData<R>) -> PhantomData<R>,
9193
);
9294

tests/all_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![deny(unused_mut)]
22
#![cfg_attr(feature = "adt_const_marker", feature(adt_const_params))]
3+
#![cfg_attr(feature = "adt_const_marker", feature(unsized_const_params))]
34
#![cfg_attr(feature = "adt_const_marker", allow(incomplete_features))]
45
#![cfg_attr(feature = "nightly_mut_refs", feature(const_mut_refs))]
56

0 commit comments

Comments
 (0)