@@ -165,7 +165,12 @@ impl<'a, 'tcx, 'rcx> Clean for visit_ast::RustdocVisitor<'a, 'tcx, 'rcx> |
|
|
165 |
165 |
match module.inner { |
166 |
166 |
ModuleItem(ref module) => { |
167 |
167 |
for it in &module.items { |
168 |
|
-if it.is_extern_crate() && it.attrs.has_doc_flag("masked") { |
|
168 |
+// `compiler_builtins` should be masked too, but we can't apply |
|
169 |
+// `#[doc(masked)]` to the injected `extern crate` because it's unstable. |
|
170 |
+if it.is_extern_crate() |
|
171 |
+ && (it.attrs.has_doc_flag("masked") |
|
172 |
+ | |
|
173 |
+{ |
169 |
174 |
masked_crates.insert(it.def_id.krate); |
170 |
175 |
} |
171 |
176 |
} |