Skip to content

Commit fa2d0b0

Browse files
Merge pull request #325 from nnethercote/missing-doc-for-macro
Fix some "error: missing documentation for macro" errors.
2 parents baeaaaf + cd33142 commit fa2d0b0

File tree

9 files changed

+23
-0
lines changed

9 files changed

+23
-0
lines changed

collector/benchmarks/futures/src/poll.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
/// A macro.
23
#[macro_export]
34
macro_rules! try_poll {
45
($e:expr) => (match $e {

collector/benchmarks/hyper/src/header/common/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub use self::upgrade::{Upgrade, Protocol, ProtocolName};
4848
pub use self::user_agent::UserAgent;
4949
pub use self::vary::Vary;
5050

51+
/// A macro.
5152
#[macro_export]
5253
macro_rules! bench_header(
5354
($name:ident, $ty:ty, $value:expr) => {
@@ -79,6 +80,7 @@ macro_rules! bench_header(
7980
}
8081
);
8182

83+
/// A macro.
8284
#[macro_export]
8385
macro_rules! __hyper__deref {
8486
($from:ty => $to:ty) => {
@@ -98,6 +100,7 @@ macro_rules! __hyper__deref {
98100
}
99101
}
100102

103+
/// A macro.
101104
#[macro_export]
102105
macro_rules! __hyper__tm {
103106
($id:ident, $tm:ident{$($tf:item)*}) => {
@@ -114,6 +117,7 @@ macro_rules! __hyper__tm {
114117
}
115118
}
116119

120+
/// A macro.
117121
#[macro_export]
118122
macro_rules! test_header {
119123
($id:ident, $raw:expr) => {
@@ -154,6 +158,7 @@ macro_rules! test_header {
154158
}
155159
}
156160

161+
/// A macro.
157162
#[macro_export]
158163
macro_rules! header {
159164
// $a:meta: Attributes associated with the header item (usually docs)

collector/benchmarks/script-servo/components/style/properties/properties.mako.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3627,6 +3627,7 @@ impl AliasId {
36273627
}
36283628
}
36293629

3630+
/// A macro.
36303631
#[macro_export]
36313632
macro_rules! css_properties_accessors {
36323633
($macro_name: ident) => {
@@ -3649,6 +3650,7 @@ macro_rules! css_properties_accessors {
36493650
}
36503651
}
36513652

3653+
/// A macro.
36523654
#[macro_export]
36533655
macro_rules! longhand_properties_idents {
36543656
($macro_name: ident) => {

collector/benchmarks/script-servo/components/style_traits/values.rs

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ where
7171
}
7272
}
7373

74+
/// A macro.
7475
#[macro_export]
7576
macro_rules! serialize_function {
7677
($dest: expr, $name: ident($( $arg: expr, )+)) => {
@@ -379,6 +380,7 @@ impl_to_css_for_predefined_type!(::cssparser::RGBA);
379380
impl_to_css_for_predefined_type!(::cssparser::Color);
380381
impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);
381382

383+
/// A macro.
382384
#[macro_export]
383385
macro_rules! define_css_keyword_enum {
384386
($name: ident: values { $( $css: expr => $variant: ident),+, }
@@ -409,6 +411,7 @@ macro_rules! define_css_keyword_enum {
409411
};
410412
}
411413

414+
/// A macro.
412415
#[cfg(feature = "servo")]
413416
#[macro_export]
414417
macro_rules! __define_css_keyword_enum__add_optional_traits {
@@ -422,6 +425,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
422425
};
423426
}
424427

428+
/// A macro.
425429
#[cfg(not(feature = "servo"))]
426430
#[macro_export]
427431
macro_rules! __define_css_keyword_enum__add_optional_traits {
@@ -435,6 +439,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
435439
};
436440
}
437441

442+
/// A macro.
438443
#[macro_export]
439444
macro_rules! __define_css_keyword_enum__actual {
440445
($name: ident [ $( $derived_trait: ident),* ]

collector/benchmarks/style-servo/components/style/gecko/generated/atom_macro.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15534,6 +15534,7 @@ cfg_if! {
1553415534
}
1553515535
}
1553615536

15537+
/// A macro.
1553715538
#[macro_export]
1553815539
macro_rules! atom {
1553915540
("") =>

collector/benchmarks/style-servo/components/style/gecko/regen_atoms.py

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def __exit__(self, type, value, traceback):
202202
' }};')
203203

204204
MACRO = '''
205+
/// A macro.
205206
#[macro_export]
206207
macro_rules! atom {{
207208
{}

collector/benchmarks/style-servo/components/style/gecko_string_cache/namespace.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use std::fmt;
1111
use std::ops::Deref;
1212
use string_cache::{Atom, WeakAtom};
1313

14+
/// A macro.
1415
#[macro_export]
1516
macro_rules! ns {
1617
() => { $crate::string_cache::Namespace(atom!("")) };

collector/benchmarks/style-servo/components/style/properties/properties.mako.rs

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ use style_adjuster::StyleAdjuster;
5050

5151
pub use self::declaration_block::*;
5252

53+
/// A macro.
5354
#[cfg(feature = "gecko")]
5455
#[macro_export]
5556
macro_rules! property_name {
@@ -3593,6 +3594,7 @@ impl AliasId {
35933594
}
35943595
}
35953596

3597+
/// A macro.
35963598
#[macro_export]
35973599
macro_rules! css_properties_accessors {
35983600
($macro_name: ident) => {
@@ -3615,6 +3617,7 @@ macro_rules! css_properties_accessors {
36153617
}
36163618
}
36173619

3620+
/// A macro.
36183621
#[macro_export]
36193622
macro_rules! longhand_properties_idents {
36203623
($macro_name: ident) => {

collector/benchmarks/style-servo/components/style_traits/values.rs

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ where
7171
}
7272
}
7373

74+
/// A macro.
7475
#[macro_export]
7576
macro_rules! serialize_function {
7677
($dest: expr, $name: ident($( $arg: expr, )+)) => {
@@ -379,6 +380,7 @@ impl_to_css_for_predefined_type!(::cssparser::RGBA);
379380
impl_to_css_for_predefined_type!(::cssparser::Color);
380381
impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);
381382

383+
/// A macro.
382384
#[macro_export]
383385
macro_rules! define_css_keyword_enum {
384386
($name: ident: values { $( $css: expr => $variant: ident),+, }
@@ -422,6 +424,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
422424
};
423425
}
424426

427+
/// A macro.
425428
#[cfg(not(feature = "servo"))]
426429
#[macro_export]
427430
macro_rules! __define_css_keyword_enum__add_optional_traits {
@@ -435,6 +438,7 @@ macro_rules! __define_css_keyword_enum__add_optional_traits {
435438
};
436439
}
437440

441+
/// A macro.
438442
#[macro_export]
439443
macro_rules! __define_css_keyword_enum__actual {
440444
($name: ident [ $( $derived_trait: ident),* ]

0 commit comments

Comments
 (0)