Skip to content

Commit abbffdc

Browse files
committed
Don't show generated assertions in the documentation
1 parent 7c5cf16 commit abbffdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

enumflags_derive/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ fn verify_flag_values<'a>(
135135
Span::call_site()); // call_site because def_site is unstable
136136
// adapted from static-assertions-rs by nvzqz (MIT/Apache-2.0)
137137
deferred_checks.push(quote_spanned!(variant.span() =>
138+
#[doc(hidden)]
138139
const #assertion_name: fn() = || {
139140
::enumflags2::_internal::assert_exactly_one_bit_set::<[(); (
140141
(#type_name::#variant_name as u64).wrapping_sub(1) &

0 commit comments

Comments
 (0)