File tree Expand file tree Collapse file tree 6 files changed +8
-0
lines changed Expand file tree Collapse file tree 6 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Replaced `typewit::const_marker::BoolWit` enum with type alias to `BoolWitG``
10
10
11
11
Added ` Copy + Clone + Debug ` impls to ` BoolWit `
12
12
13
+ Fixed ` "adt_const_marker" ` crate feature
13
14
14
15
### 1.9.0
15
16
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ super::declare_const_param_type! {
16
16
///
17
17
/// ```rust
18
18
/// #![feature(adt_const_params)]
19
+ /// #![feature(unsized_const_params)]
19
20
///
20
21
/// use typewit::{const_marker::Str, MakeTypeWitness};
21
22
///
Original file line number Diff line number Diff line change 454
454
#![ no_std]
455
455
#![ cfg_attr( feature = "nightly_mut_refs" , feature( const_mut_refs) ) ]
456
456
#![ cfg_attr( feature = "adt_const_marker" , feature( adt_const_params) ) ]
457
+ #![ cfg_attr( feature = "adt_const_marker" , feature( unsized_const_params) ) ]
457
458
#![ cfg_attr( feature = "adt_const_marker" , allow( incomplete_features) ) ]
458
459
#![ cfg_attr( feature = "docsrs" , feature( doc_cfg) ) ]
459
460
#![ allow( clippy:: type_complexity) ]
Original file line number Diff line number Diff line change @@ -297,7 +297,9 @@ mod type_eq_ {
297
297
// Declared to work around this error in old Rust versions:
298
298
// > error[E0658]: function pointers cannot appear in constant functions
299
299
struct TypeEqHelper < L : ?Sized , R : ?Sized > (
300
+ #[ allow( dead_code) ]
300
301
fn ( PhantomData < L > ) -> PhantomData < L > ,
302
+ #[ allow( dead_code) ]
301
303
fn ( PhantomData < R > ) -> PhantomData < R > ,
302
304
) ;
303
305
Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ mod type_ne_ {
86
86
// Declared to work around this error in old Rust versions:
87
87
// > error[E0658]: function pointers cannot appear in constant functions
88
88
struct TypeNeHelper < L : ?Sized , R : ?Sized > (
89
+ #[ allow( dead_code) ]
89
90
fn ( PhantomData < L > ) -> PhantomData < L > ,
91
+ #[ allow( dead_code) ]
90
92
fn ( PhantomData < R > ) -> PhantomData < R > ,
91
93
) ;
92
94
Original file line number Diff line number Diff line change 1
1
#![ deny( unused_mut) ]
2
2
#![ cfg_attr( feature = "adt_const_marker" , feature( adt_const_params) ) ]
3
+ #![ cfg_attr( feature = "adt_const_marker" , feature( unsized_const_params) ) ]
3
4
#![ cfg_attr( feature = "adt_const_marker" , allow( incomplete_features) ) ]
4
5
#![ cfg_attr( feature = "nightly_mut_refs" , feature( const_mut_refs) ) ]
5
6
You can’t perform that action at this time.
0 commit comments