Merge pull request #1768 from robo9k/dummy-const-hidden-doc

Hide generated dummy const in rustdoc
This commit is contained in:
David Tolnay 2020-04-03 14:25:50 -07:00 committed by GitHub
commit 645f672a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ pub fn wrap_in_const(
};
quote! {
#[doc(hidden)]
#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
const #dummy_const: () = {
#use_serde