Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d8cc575
std_detect Darwin AArch64: add new-style detection for FEAT_CRC32
pthariensflame Sep 10, 2025
edc87e3
std_detect Darwin AArch64: re-alphabetize
pthariensflame Sep 14, 2025
d49f6a7
std_detect Darwin AArch64: synchronize features
pthariensflame Sep 14, 2025
3847786
bootstrap: Don't force -static for musl targets in cc-rs
Gelbpunkt Sep 15, 2025
f4b8768
Support ctr and lr as clobber-only registers in PowerPC inline assembly
taiki-e Sep 21, 2025
2dfcd09
btree InternalNode::new safety comments
hkBst Sep 21, 2025
8886790
Add panic=immediate-abort
saethlin Sep 7, 2025
df58fd8
Change the cfg to a dash
saethlin Sep 18, 2025
aef02fb
Explain tests and setting cfgs
saethlin Sep 21, 2025
b3c2435
Make mips64el-unknown-linux-muslabi64 link dynamically
Gelbpunkt Sep 21, 2025
3565b06
emit attribute for readonly non-pure inline assembly
folkertdev Sep 19, 2025
c54a953
Early return in `visibility_print_with_space`
yotamofek Sep 21, 2025
cdf9661
Re-use some existing util fns
yotamofek Sep 21, 2025
2067160
Introduce "wrapper" helpers to rustdoc
yotamofek Sep 21, 2025
223e5d7
Rollup merge of #146317 - saethlin:panic=immediate-abort, r=nnethercote
Zalathar Sep 22, 2025
c6726b8
Rollup merge of #146397 - pthariensflame:patch-1, r=Amanieu
Zalathar Sep 22, 2025
2c28bda
Rollup merge of #146594 - Gelbpunkt:bootstrap-musl-static, r=Mark-Sim…
Zalathar Sep 22, 2025
1cb5a4d
Rollup merge of #146791 - folkertdev:readonly-not-pure, r=nikic,josht…
Zalathar Sep 22, 2025
ee3a7ee
Rollup merge of #146831 - taiki-e:powerpc-clobber, r=Amanieu
Zalathar Sep 22, 2025
4950577
Rollup merge of #146838 - yotamofek:pr/rustdoc/wrappers, r=lolbinarycat
Zalathar Sep 22, 2025
1acdc06
Rollup merge of #146846 - hkBst:btree-2, r=tgross35
Zalathar Sep 22, 2025
6af1bb2
Rollup merge of #146858 - Gelbpunkt:mips64el-musl-dynamic, r=jieyouxu
Zalathar Sep 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Re-use some existing util fns
  • Loading branch information
yotamofek committed Sep 21, 2025
commit cdf96614cf19643a0337e8b012d3e72f1bfa3cd2
16 changes: 7 additions & 9 deletions src/librustdoc/html/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,10 +965,7 @@ fn fmt_type(
write!(f, "]")
}
clean::RawPointer(m, t) => {
let m = match m {
hir::Mutability::Mut => "mut",
hir::Mutability::Not => "const",
};
let m = m.ptr_str();

if matches!(**t, clean::Generic(_)) || t.is_assoc_ty() {
let ty = t.print(cx);
Expand Down Expand Up @@ -1406,12 +1403,13 @@ impl clean::FnDecl {
}

fn print_output(&self, cx: &Context<'_>) -> impl Display {
fmt::from_fn(move |f| match &self.output {
clean::Tuple(tys) if tys.is_empty() => Ok(()),
ty if f.alternate() => {
write!(f, " -> {:#}", ty.print(cx))
fmt::from_fn(move |f| {
if self.output.is_unit() {
return Ok(());
}
ty => write!(f, " -&gt; {}", ty.print(cx)),

f.write_str(if f.alternate() { " -> " } else { " -&gt; " })?;
self.output.print(cx).fmt(f)
})
}
}
Expand Down