<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/rustdoc, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-04T22:51:33+00:00</updated>
<entry>
<title>Auto merge of #138736 - azhogin:azhogin/sanitizers-target-modificators, r=rcvalle</title>
<updated>2025-09-04T22:51:33+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-09-04T22:51:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b3cfb8faf84c5f3b7909479a9f9b6a3290d5f4d7'/>
<id>urn:sha1:b3cfb8faf84c5f3b7909479a9f9b6a3290d5f4d7</id>
<content type='text'>
Sanitizers target modificators

Depends on bool flag fix: https://github.com/rust-lang/rust/pull/138483.

Some sanitizers need to be target modifiers, and some do not. For now, we should mark all sanitizers as target modifiers except for these: AddressSanitizer, LeakSanitizer

For kCFI, the helper flag -Zsanitizer-cfi-normalize-integers should also be a target modifier.

Many test errors was with sanizer flags inconsistent with std deps. Tests are fixed with `-C unsafe-allow-abi-mismatch`.
</content>
</entry>
<entry>
<title>Add tests for `doc(attribute = "...")` attribute</title>
<updated>2025-08-28T13:56:30+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-06-13T19:02:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=75cbd05d19a7cfb0819f15a57f2561cd28a956a7'/>
<id>urn:sha1:75cbd05d19a7cfb0819f15a57f2561cd28a956a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat</title>
<updated>2025-08-24T19:46:17+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-08-24T19:46:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=809200ec956983fce4ae178b87dada69f01d0820'/>
<id>urn:sha1:809200ec956983fce4ae178b87dada69f01d0820</id>
<content type='text'>
Add support for macro expansion in rustdoc source code pages

This is what it looks like:

![Screenshot From 2025-02-18 18-08-51](https://github.com/user-attachments/assets/ce2b3806-6218-47df-94bf-e9e9ed40cd41)

![image](https://github.com/user-attachments/assets/891042db-8632-4dba-9343-e28570c058fe)

You can test it [here](https://rustdoc.crud.net/imperio/macro-expansion/src/lib/lib.rs.html). In this case, I also enabled the `--generate-link-to-definition` to show that both options work well together.

Note: &lt;del&gt;There is a bug currently in firefox where the line numbers are not displayed correctly if they're inside the "macro expansion" span: https://bugzilla.mozilla.org/show_bug.cgi?id=1949948&lt;del&gt; Found a workaround around this bug.

r? `@notriddle`
</content>
</entry>
<entry>
<title>rustdoc: render attributes in Field and Variants sections</title>
<updated>2025-08-24T10:01:08+00:00</updated>
<author>
<name>Karol Zwolak</name>
<email>karolzwolak7@gmail.com</email>
</author>
<published>2025-08-23T09:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b8313dfb04a12b45483f2a8a7527d8ba1c63ae03'/>
<id>urn:sha1:b8313dfb04a12b45483f2a8a7527d8ba1c63ae03</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: update attribute tests</title>
<updated>2025-08-23T09:27:03+00:00</updated>
<author>
<name>Karol Zwolak</name>
<email>karolzwolak7@gmail.com</email>
</author>
<published>2025-08-22T18:40:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=90aa25a1c5dbae1e94099b1a2015dfb83783dbe0'/>
<id>urn:sha1:90aa25a1c5dbae1e94099b1a2015dfb83783dbe0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Also support statements and patterns for macro expansion</title>
<updated>2025-08-22T22:57:29+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2025-08-01T14:57:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0e9b126695847418a681b96b87b5976fb069394a'/>
<id>urn:sha1:0e9b126695847418a681b96b87b5976fb069394a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>-Zsanitize and -Zsanitizer-cfi-normalize-integers flags are now target modifiers with custom consistency check function</title>
<updated>2025-08-21T09:08:00+00:00</updated>
<author>
<name>Andrew Zhogin</name>
<email>andrew.zhogin@gmail.com</email>
</author>
<published>2025-03-20T05:43:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6d637dfeccd7d22523e584203e666535db878165'/>
<id>urn:sha1:6d637dfeccd7d22523e584203e666535db878165</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc-search: search backend with partitioned suffix tree</title>
<updated>2025-08-15T17:26:03+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-11-22T19:58:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8511e40e7294e1efcc64b81d43969b6bf0f14c2d'/>
<id>urn:sha1:8511e40e7294e1efcc64b81d43969b6bf0f14c2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: Allow multiple references to a single footnote</title>
<updated>2025-08-14T04:39:31+00:00</updated>
<author>
<name>Tsukasa OI</name>
<email>floss_rust@irq.a4lg.com</email>
</author>
<published>2025-08-14T04:39:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=74aca53f5591f9ad4a5e74c42eb101534c3e7b12'/>
<id>urn:sha1:74aca53f5591f9ad4a5e74c42eb101534c3e7b12</id>
<content type='text'>
Multiple references to a single footnote is a part of GitHub Flavored
Markdown syntax (although not explicitly documented as well as regular
footnotes, it is implemented in GitHub's fork of CommonMark) and not
prohibited by rustdoc.

cf. &lt;https://github.com/github/cmark-gfm/blob/587a12bb54d95ac37241377e6ddc93ea0e45439b/test/extensions.txt#L762-L780&gt;

However, using it makes multiple "sup" elements with the same "id"
attribute, which is invalid per the HTML specification.

Still, not only this is a valid GitHub Flavored Markdown syntax, this is
helpful on certain cases and actually tested (accidentally) in
tests/rustdoc/footnote-reference-in-footnote-def.rs.

This commit keeps track of the number of references per footnote and gives
unique ID to each reference.  It also emits *all* back links from a footnote
to its references as "↩" (return symbol) plus a numeric list in superscript.

As a known limitation, it assumes that all references to a footnote are
rendered (this is not always true if a dangling footnote has one or more
references but considered a reasonable compromise).

Also note that, this commit is designed so that no HTML changes will occur
unless multiple references to a single footnote is actually used.
</content>
</entry>
<entry>
<title>test: Add rustdoc test for enum negative overflow</title>
<updated>2025-08-10T15:02:53+00:00</updated>
<author>
<name>Eval EXEC</name>
<email>execvy@gmail.com</email>
</author>
<published>2025-08-10T15:02:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=de13718c66965852ba8970781908fa1eda9a54b9'/>
<id>urn:sha1:de13718c66965852ba8970781908fa1eda9a54b9</id>
<content type='text'>
</content>
</entry>
</feed>
