Skip to content

Fix some "error: missing documentation for macro" errors. #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions collector/benchmarks/futures/src/poll.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

/// A macro.
#[macro_export]
macro_rules! try_poll {
($e:expr) => (match $e {
Expand Down
5 changes: 5 additions & 0 deletions collector/benchmarks/hyper/src/header/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub use self::upgrade::{Upgrade, Protocol, ProtocolName};
pub use self::user_agent::UserAgent;
pub use self::vary::Vary;

/// A macro.
#[macro_export]
macro_rules! bench_header(
($name:ident, $ty:ty, $value:expr) => {
Expand Down Expand Up @@ -79,6 +80,7 @@ macro_rules! bench_header(
}
);

/// A macro.
#[macro_export]
macro_rules! __hyper__deref {
($from:ty => $to:ty) => {
Expand All @@ -98,6 +100,7 @@ macro_rules! __hyper__deref {
}
}

/// A macro.
#[macro_export]
macro_rules! __hyper__tm {
($id:ident, $tm:ident{$($tf:item)*}) => {
Expand All @@ -114,6 +117,7 @@ macro_rules! __hyper__tm {
}
}

/// A macro.
#[macro_export]
macro_rules! test_header {
($id:ident, $raw:expr) => {
Expand Down Expand Up @@ -154,6 +158,7 @@ macro_rules! test_header {
}
}

/// A macro.
#[macro_export]
macro_rules! header {
// $a:meta: Attributes associated with the header item (usually docs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3627,6 +3627,7 @@ impl AliasId {
}
}

/// A macro.
#[macro_export]
macro_rules! css_properties_accessors {
($macro_name: ident) => {
Expand All @@ -3649,6 +3650,7 @@ macro_rules! css_properties_accessors {
}
}

/// A macro.
#[macro_export]
macro_rules! longhand_properties_idents {
($macro_name: ident) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ where
}
}

/// A macro.
#[macro_export]
macro_rules! serialize_function {
($dest: expr, $name: ident($( $arg: expr, )+)) => {
Expand Down Expand Up @@ -379,6 +380,7 @@ impl_to_css_for_predefined_type!(::cssparser::RGBA);
impl_to_css_for_predefined_type!(::cssparser::Color);
impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);

/// A macro.
#[macro_export]
macro_rules! define_css_keyword_enum {
($name: ident: values { $( $css: expr => $variant: ident),+, }
Expand Down Expand Up @@ -409,6 +411,7 @@ macro_rules! define_css_keyword_enum {
};
}

/// A macro.
#[cfg(feature = "servo")]
#[macro_export]
macro_rules! __define_css_keyword_enum__add_optional_traits {
Expand All @@ -422,6 +425,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
};
}

/// A macro.
#[cfg(not(feature = "servo"))]
#[macro_export]
macro_rules! __define_css_keyword_enum__add_optional_traits {
Expand All @@ -435,6 +439,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
};
}

/// A macro.
#[macro_export]
macro_rules! __define_css_keyword_enum__actual {
($name: ident [ $( $derived_trait: ident),* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15534,6 +15534,7 @@ cfg_if! {
}
}

/// A macro.
#[macro_export]
macro_rules! atom {
("") =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def __exit__(self, type, value, traceback):
' }};')

MACRO = '''
/// A macro.
#[macro_export]
macro_rules! atom {{
{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use std::fmt;
use std::ops::Deref;
use string_cache::{Atom, WeakAtom};

/// A macro.
#[macro_export]
macro_rules! ns {
() => { $crate::string_cache::Namespace(atom!("")) };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ use style_adjuster::StyleAdjuster;

pub use self::declaration_block::*;

/// A macro.
#[cfg(feature = "gecko")]
#[macro_export]
macro_rules! property_name {
Expand Down Expand Up @@ -3593,6 +3594,7 @@ impl AliasId {
}
}

/// A macro.
#[macro_export]
macro_rules! css_properties_accessors {
($macro_name: ident) => {
Expand All @@ -3615,6 +3617,7 @@ macro_rules! css_properties_accessors {
}
}

/// A macro.
#[macro_export]
macro_rules! longhand_properties_idents {
($macro_name: ident) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ where
}
}

/// A macro.
#[macro_export]
macro_rules! serialize_function {
($dest: expr, $name: ident($( $arg: expr, )+)) => {
Expand Down Expand Up @@ -379,6 +380,7 @@ impl_to_css_for_predefined_type!(::cssparser::RGBA);
impl_to_css_for_predefined_type!(::cssparser::Color);
impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);

/// A macro.
#[macro_export]
macro_rules! define_css_keyword_enum {
($name: ident: values { $( $css: expr => $variant: ident),+, }
Expand Down Expand Up @@ -422,6 +424,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
};
}

/// A macro.
#[cfg(not(feature = "servo"))]
#[macro_export]
macro_rules! __define_css_keyword_enum__add_optional_traits {
Expand All @@ -435,6 +438,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
};
}

/// A macro.
#[macro_export]
macro_rules! __define_css_keyword_enum__actual {
($name: ident [ $( $derived_trait: ident),* ]
Expand Down