Skip to content

Commit 180bd3d

Browse files
fmt
1 parent d2dae03 commit 180bd3d

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

library/alloc/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@
7777
)]
7878
#![cfg_attr(
7979
not(bootstrap),
80-
doc(auto_cfg(hide(
81-
no_global_oom_handling,
82-
no_rc,
83-
no_sync,
84-
target_has_atomic = "ptr"
85-
)))
80+
doc(auto_cfg(hide(no_global_oom_handling, no_rc, no_sync, target_has_atomic = "ptr")))
8681
)]
8782
#![doc(rust_logo)]
8883
#![feature(rustdoc_internals)]

library/std/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,7 @@
237237
#![doc(rust_logo)]
238238
#![cfg_attr(
239239
bootstrap,
240-
doc(cfg_hide(
241-
not(test),
242-
no_global_oom_handling,
243-
not(no_global_oom_handling)
244-
))
240+
doc(cfg_hide(not(test), no_global_oom_handling, not(no_global_oom_handling)))
245241
)]
246242
#![cfg_attr(not(bootstrap), doc(auto_cfg(hide(no_global_oom_handling))))]
247243
// Don't link to std. We are std.

src/librustdoc/doctest/rust.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,9 @@ impl HirCollector<'_> {
115115
nested: F,
116116
) {
117117
let ast_attrs = self.tcx.hir_attrs(self.tcx.local_def_id_to_hir_id(def_id));
118-
if let Some(ref cfg) = extract_cfg_from_attrs(
119-
ast_attrs.iter(),
120-
self.tcx,
121-
&mut CfgInfo::default(),
122-
) && !cfg.matches(&self.tcx.sess.psess)
118+
if let Some(ref cfg) =
119+
extract_cfg_from_attrs(ast_attrs.iter(), self.tcx, &mut CfgInfo::default())
120+
&& !cfg.matches(&self.tcx.sess.psess)
123121
{
124122
return;
125123
}

0 commit comments

Comments
 (0)