<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/render, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-22T05:59:24+00:00</updated>
<entry>
<title>Introduce `Symbol::with_interner`.</title>
<updated>2025-07-22T05:59:24+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-06-22T21:24:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8a5bcdde9d8668f92bd2f323898d5da1bdc5df5b'/>
<id>urn:sha1:8a5bcdde9d8668f92bd2f323898d5da1bdc5df5b</id>
<content type='text'>
It lets you get the contents of multiple symbols with a single TLS
lookup and interner lock, instead of one per symbol.
</content>
</entry>
<entry>
<title>Rollup merge of #143988 - GuillaumeGomez:alias-inexact, r=lolbinarycat</title>
<updated>2025-07-20T06:56:06+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-20T06:56:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dda505850ad72808e151256156ccd67994b0d52c'/>
<id>urn:sha1:dda505850ad72808e151256156ccd67994b0d52c</id>
<content type='text'>
[rustdoc] Make aliases search support partial matching

Fixes rust-lang/rust#140782.

To make this work, I moved aliases into the `searchIndex` like any other item. It links to the "original" item with a new `original` field. No so great part is that we need to have some fields like `bitIndex` to be set on the alias to make the description load to work but I consider it minor enough to be ok.

This PR voluntarily doesn't handle de-prioritization of aliases as ```@lolbinarycat``` wished to work on this so I'll leave them this part. :wink:

cc ```@lolbinarycat```
</content>
</entry>
<entry>
<title>Fix clippy lints in librustdoc</title>
<updated>2025-07-19T14:20:47+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-07-19T14:20:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c75edc982c8cf67f30d9c082cf2670f59392ed2e'/>
<id>urn:sha1:c75edc982c8cf67f30d9c082cf2670f59392ed2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include ErrorGuaranteed in StableSince::Err.</title>
<updated>2025-07-17T23:27:19+00:00</updated>
<author>
<name>Camille GILLOT</name>
<email>gillot.camille@gmail.com</email>
</author>
<published>2025-07-16T22:39:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=83255f57e09694f68b5df6713de46de7894d469b'/>
<id>urn:sha1:83255f57e09694f68b5df6713de46de7894d469b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve path segment joining.</title>
<updated>2025-07-16T22:37:19+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2025-05-27T05:51:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fb7aa9e4fdb88a4833274303899b9801ef924100'/>
<id>urn:sha1:fb7aa9e4fdb88a4833274303899b9801ef924100</id>
<content type='text'>
There are many places that join path segments with `::` to produce a
string. A lot of these use `join("::")`. Many in rustdoc use
`join_with_double_colon`, and a few use `.joined("..")`. One in Clippy
uses `itertools::join`. A couple of them look for `kw::PathRoot` in the
first segment, which can be important.

This commit introduces `rustc_ast::join_path_{syms,ident}` to do the
joining for everyone. `rustc_ast` is as good a location for these as
any, being the earliest-running of the several crates with a `Path`
type. Two functions are needed because `Ident` printing is more complex
than simple `Symbol` printing.

The commit also removes `join_with_double_colon`, and
`estimate_item_path_byte_length` with it.

There are still a handful of places that join strings with "::" that are
unchanged. They are not that important: some of them are in tests, and
some of them first split a path around "::" and then rejoin with "::".

This fixes one test case where `{{root}}` shows up in an error message.
</content>
</entry>
<entry>
<title>Make aliases search support partial matching</title>
<updated>2025-07-16T12:27:22+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-07-15T16:11:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=47b138b2b89f91278b7825569b1bdad24f1eee6a'/>
<id>urn:sha1:47b138b2b89f91278b7825569b1bdad24f1eee6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc-json: Structured attributes</title>
<updated>2025-07-15T16:52:41+00:00</updated>
<author>
<name>Alona Enraght-Moony</name>
<email>code@alona.page</email>
</author>
<published>2025-06-20T02:48:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=078332fdc8e11f7ff8253c019085098538ec3c2a'/>
<id>urn:sha1:078332fdc8e11f7ff8253c019085098538ec3c2a</id>
<content type='text'>
Implements https://www.github.com/rust-lang/rust/issues/141358.

This has 2 primary benefits:

1. For rustdoc-json consumers, they no longer need to parse strings of
   attributes, but it's there in a structured and normalized way.
2. For rustc contributors, the output of HIR pretty printing is no
   longer a versioned thing in the output. People can work on
   https://github.com/rust-lang/rust/issues/131229 without needing to
   bump `FORMAT_VERSION`.

(Over time, as the attribute refractor continues, I expect we'll add new
things to `rustdoc_json_types::Attribute`. But this can be done
separately to the rustc changes).
</content>
</entry>
<entry>
<title>update issue number for `const_trait_impl`</title>
<updated>2025-07-13T15:55:06+00:00</updated>
<author>
<name>Deadbeef</name>
<email>ent3rm4n@gmail.com</email>
</author>
<published>2025-07-13T08:21:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b02597ed3dc7a7c3581960ca6afae575f6c691e'/>
<id>urn:sha1:6b02597ed3dc7a7c3581960ca6afae575f6c691e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #142869 - nnethercote:join_path-mini, r=camelid</title>
<updated>2025-07-08T06:32:37+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-08T06:32:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=45b80ac21a454d343833aad763ef604510c88375'/>
<id>urn:sha1:45b80ac21a454d343833aad763ef604510c88375</id>
<content type='text'>
Use `join_with_double_colon` in `write_shared.rs`.

For consistency. Also, it's faster because `join_with_double_colon` does a better job estimating the allocation size than `join` from `itertools`.

r? `@camelid`
</content>
</entry>
<entry>
<title>Auto merge of #143363 - jdonszelmann:rollup-7cv1kql, r=jdonszelmann</title>
<updated>2025-07-03T13:55:05+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-07-03T13:55:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a413f77285c0ab551cf58db729e054f43150dd50'/>
<id>urn:sha1:a413f77285c0ab551cf58db729e054f43150dd50</id>
<content type='text'>
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#134006 (setup typos check in CI)
 - rust-lang/rust#142876 (Port `#[target_feature]` to new attribute parsing infrastructure)
 - rust-lang/rust#143038 (avoid suggesting traits from private dependencies)
 - rust-lang/rust#143083 (Fix rustdoc not correctly showing attributes on re-exports)
 - rust-lang/rust#143283 (document optional jobs)
 - rust-lang/rust#143329 (minicore: use core's `diagnostic::on_unimplemented` messages)

Failed merges:

 - rust-lang/rust#143237 (Port `#[no_implicit_prelude]` to the new attribute parsing infrastructure)

r? `@ghost`
`@rustbot` modify labels: rollup
</content>
</entry>
</feed>
