Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a6446c5
rustdoc: fix type search index for `fn<T>() -> &T where T: Trait`
notriddle Mar 7, 2023
44813e0
rustdoc: fix type search when more than one `where` clause applies
notriddle Mar 7, 2023
50f7520
rustdoc: DocFS: Replace rayon with threadpool and enable it for all t…
GuillaumeGomez Mar 14, 2023
e482701
Assert def-kind is correct for alias types
compiler-errors Mar 14, 2023
cf6424e
Don't make projection tys out of anon consts
compiler-errors Mar 14, 2023
bd17322
error-msg: impl better suggestion for `E0532`
Ezrashaw Mar 10, 2023
d3d537b
Exhaustively match over all alias kinds
oli-obk Mar 7, 2023
d87fbb9
Deduplicate logic between projection normalization with and without e…
oli-obk Mar 8, 2023
d2b7604
always make `define_opaque_types` explicit
lcnr Mar 15, 2023
e667872
Update docsfs module documentation
GuillaumeGomez Mar 15, 2023
6e1ab1d
mv tests/codegen/issue-* tests/codegen/issues/
scottmcm Mar 15, 2023
e5a5b90
unequal → not equal
Mar 15, 2023
683c12c
rustdoc: remove `std::` from primitive intra-doc link tooltips
notriddle Mar 15, 2023
3f250a9
Mention UEFI target promotion in release notes for 1.67.0
Mar 15, 2023
e8ba21a
Rollup merge of #108875 - notriddle:notriddle/return-trait, r=Guillau…
matthiaskrgr Mar 16, 2023
db4b222
Rollup merge of #108971 - Ezrashaw:E0532-better-binding-names, r=Waff…
matthiaskrgr Mar 16, 2023
49f1623
Rollup merge of #109139 - GuillaumeGomez:rustdoc-windows-wait-for-wri…
matthiaskrgr Mar 16, 2023
5870e28
Rollup merge of #109151 - compiler-errors:debug-assert-alias, r=Waffl…
matthiaskrgr Mar 16, 2023
967cf8b
Rollup merge of #109166 - lcnr:define_opaque_types-explicit, r=oli-obk
matthiaskrgr Mar 16, 2023
b0b5d07
Rollup merge of #109171 - oli-obk:normalization_cleanup, r=compiler-e…
matthiaskrgr Mar 16, 2023
85e18d2
Rollup merge of #109172 - scottmcm:move-codegen-issues-tests, r=Waffl…
matthiaskrgr Mar 16, 2023
384733f
Rollup merge of #109180 - gimbles:master, r=compiler-errors
matthiaskrgr Mar 16, 2023
9281eb4
Rollup merge of #109185 - notriddle:notriddle/primitive-tooltip, r=jsha
matthiaskrgr Mar 16, 2023
1326ced
Rollup merge of #109192 - lukas-code:uefi-relnotes, r=joshtriplett
matthiaskrgr Mar 16, 2023
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
6 changes: 6 additions & 0 deletions src/librustdoc/html/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,12 @@ pub(crate) fn link_tooltip(did: DefId, fragment: &Option<UrlFragment>, cx: &Cont
.or_else(|| cache.external_paths.get(&did))
else { return String::new() };
let mut buf = Buffer::new();
let fqp = if *shortty == ItemType::Primitive {
// primitives are documented in a crate, but not actually part of it
&fqp[fqp.len() - 1..]
} else {
&fqp
};
if let &Some(UrlFragment::Item(id)) = fragment {
write!(buf, "{} ", cx.tcx().def_descr(id));
for component in fqp {
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/intra-doc/prim-methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

// @has prim_methods/index.html
// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html"]' 'char'
// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html"]/@title' 'primitive char'
// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html#method.len_utf8"]' 'char::len_utf8'
// @has - '//*[@id="main-content"]//a[@href="{{channel}}/std/primitive.char.html#method.len_utf8"]/@title' 'method char::len_utf8'

//! A [`char`] and its [`char::len_utf8`].