Skip to content

Commit b383ea0

Browse files
authored
Document why we re-direct to a derive macro (#117)
1 parent 1933e5a commit b383ea0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ fn derive_where_internal(mut item: DeriveInput) -> Result<TokenStream> {
568568
Ok(output)
569569
}
570570

571+
/// Internally we re-direct the attribute macro to the derive macro. Unlike the
572+
/// attribute macro, the derive macro supports helper attributes and evaluates
573+
/// `cfg`s.
571574
#[doc(hidden)]
572575
#[proc_macro_derive(DeriveWhere, attributes(derive_where))]
573576
#[cfg_attr(feature = "nightly", allow_internal_unstable(core_intrinsics))]

0 commit comments

Comments
 (0)