Skip to content

Commit 26d4b99

Browse files
fmt
1 parent 6c8cce7 commit 26d4b99

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
@@ -119,11 +119,9 @@ impl HirCollector<'_> {
119119
nested: F,
120120
) {
121121
let ast_attrs = self.tcx.hir_attrs(self.tcx.local_def_id_to_hir_id(def_id));
122-
if let Some(ref cfg) = extract_cfg_from_attrs(
123-
ast_attrs.iter(),
124-
self.tcx,
125-
&mut CfgInfo::default(),
126-
) && !cfg.matches(&self.tcx.sess.psess)
122+
if let Some(ref cfg) =
123+
extract_cfg_from_attrs(ast_attrs.iter(), self.tcx, &mut CfgInfo::default())
124+
&& !cfg.matches(&self.tcx.sess.psess)
127125
{
128126
return;
129127
}

0 commit comments

Comments
 (0)