File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ never = []
21
21
# Support the 'builtin' alternative to stdlib types
22
22
builtins = []
23
23
24
-
25
24
[workspace ]
26
25
members = [" lib/*" ]
26
+
27
+ # Workaround for outdated nightly
28
+ [package .metadata .docs .rs ]
29
+ rustc-args = [" --cfg" , " docs_rs" ]
Original file line number Diff line number Diff line change 13
13
#![ feature(
14
14
const_fn, // We rely on const eval :(
15
15
const_panic, const_option, // We use Option::unwrap
16
- const_fn_trait_bound, // This is required on recent nightly
17
16
const_fn_fn_ptr_basics, // We use PhantomData<fn() -> T>
18
17
// Used for field_offset macro
19
18
const_raw_ptr_deref,
20
19
const_raw_ptr_to_usize_cast,
21
20
) ]
21
+ /*
22
+ * This is required on recent nightly
23
+ *
24
+ * However it breaks on the version that docs.rs is using (as of this writing).
25
+ * Therefore, we have to turn it off there.
26
+ */
27
+ #![ cfg_attr( not( docs_rs) , feature( const_fn_trait_bound) ) ]
22
28
#![ cfg_attr( feature = "never" , feature( never_type) ) ]
23
29
24
30
mod macros;
@@ -71,4 +77,4 @@ pub unsafe trait FieldReflect: StaticReflect {
71
77
/// Static information on this structure's fields,
72
78
/// where each field's information is given by name
73
79
const NAMED_FIELD_INFO : Self :: NamedFieldInfo ;
74
- }
80
+ }
You can’t perform that action at this time.
0 commit comments