File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,29 @@ extern crate lazy_static;
42
42
// undocumented. Normal builds, however, will leave the module private, so that
43
43
// we don't expose internals to library consumers.
44
44
macro_rules! doc_mod {
45
- ( $m: ident) => {
45
+ ( $m: ident, $doc_mod_name : ident ) => {
46
46
cfg_if! {
47
47
if #[ cfg( feature = "_docs" ) ] {
48
- pub mod $m;
48
+ pub mod $doc_mod_name {
49
+ //! Autogenerated documentation module.
50
+ pub use super :: $m:: * ;
51
+ }
49
52
} else {
50
- mod $m;
51
53
}
52
54
}
53
55
} ;
54
56
}
55
57
56
58
mod clangll;
57
- doc_mod ! ( clang) ;
58
- doc_mod ! ( ir) ;
59
- doc_mod ! ( parse) ;
60
- doc_mod ! ( regex_set) ;
59
+ mod clang;
60
+ mod ir;
61
+ mod parse;
62
+ mod regex_set;
63
+
64
+ doc_mod ! ( clang, clang_docs) ;
65
+ doc_mod ! ( ir, ir_docs) ;
66
+ doc_mod ! ( parse, parse_docs) ;
67
+ doc_mod ! ( regex_set, regex_set_docs) ;
61
68
62
69
mod codegen {
63
70
include ! ( concat!( env!( "OUT_DIR" ) , "/codegen.rs" ) ) ;
You can’t perform that action at this time.
0 commit comments