Guillaume Gomez
1052ddda96
Add regression test for #137857 to ensure that we generate intra doc links for extern crate items.
2025-06-28 11:27:12 +02:00
David Wood
da47753496
rustdoc: {Meta,Pointee,}Sized in non-minicore
...
Some rustdoc tests are `no_core` and need to have `MetaSized` and
`PointeeSized` added to them.
2025-06-16 23:04:36 +00:00
binarycat
871327e9c7
rustdoc: linking to a local proc macro no longer warns
...
fixes https://github.com/rust-lang/rust/issues/91274
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-05-27 10:03:05 -05:00
Guillaume Gomez
a00b39961a
Move intra-doc tests into the expected subfolder
2025-05-05 17:47:18 +02:00
Pietro Albini
cd371b90e2
replace //@ compile-flags: --edition with //@ edition
2025-04-10 09:56:37 +02:00
Michael Goulet
36839759ce
Add missing lang items in no_core tests in rustdoc
2025-02-04 01:05:31 +00:00
Michael Howell
c17d5689da
Direct link 108459 to issues -> pull redirect
2025-01-30 12:09:33 -07:00
Michael Howell
eb457da5ca
rustdoc: rename issue-\d+.rs tests to have meaningful names
2025-01-29 11:38:15 -07:00
Michael Howell
fdef34b4dd
Add URL and crate_name to test cases
2025-01-29 11:21:52 -07:00
Guillaume Gomez
b3865d1832
Remove more CSS classes
2025-01-18 20:29:55 +01:00
Guillaume Gomez
3c62ccdff5
Update rustdoc tests
2025-01-17 22:36:49 +01:00
Michael Howell
da1c1c33ab
Adjust test for slightly changed inlining behavior
2024-12-26 18:31:55 -07:00
Guillaume Gomez
a01de760bb
Add regression test for #132208
2024-12-17 17:32:11 +01:00
Guillaume Gomez
d540e7285c
Add regression tests for #130233
2024-10-14 17:51:37 +02:00
Noa
e91e01509e
Add field@ and variant@ doc-link disambiguators
2024-09-19 19:16:53 -05:00
Guillaume Gomez
1b67035579
Update tests/rustdoc to new test syntax
2024-06-24 11:08:41 +02:00
许杰友 Jieyou Xu (Joe)
6e48b96692
[AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives
2024-02-22 16:04:04 +00:00
Michael Howell
35830fe218
rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5)
2024-01-03 15:33:12 -07:00
Oli Scherer
4512f211ae
Accept less invalid Rust in rustdoc
2023-10-31 13:58:03 +00:00
Kyle Lin
5ce6cc7df3
Still resolving rustdoc resolution panicking
2023-08-18 15:19:17 +08:00
Lukas Markeffsky
9ebd8095fa
fix doc links on use items
2023-07-22 12:14:26 +02:00
Dylan DPC
0baa30129b
Rollup merge of #108459 - benediktwerner:rustdoc-fix-link-match, r=GuillaumeGomez
...
rustdoc: Fix LinkReplacer link matching
It currently just uses the first link with the same href which might not necessarily be the matching one.
This fixes replacements when there are several links to the same item but with different text (e.g. `[X] and [struct@X]`). It also fixes replacements in summaries since those use a links list with empty hrefs, so currently all links would always match the first link by href but then not match its text. This could also lead to a panic in the `original_lext[1..len() - 1]` part when the first link only has a single character, which is why the new code uses `.get(..)` instead.
2023-06-01 11:09:42 +05:30
benediktwerner
9968f3ce55
rustdoc: Fix LinkReplacer link matching
2023-05-30 21:22:30 +02:00
León Orell Valerian Liehr
61e1eda6db
IAT: Rustdoc integration
2023-05-04 16:59:11 +02:00
Guillaume Gomez
3ef8d2d607
Update tests for rustc_doc_primitive
2023-03-30 22:56:52 +02:00
Michael Howell
683c12cb91
rustdoc: remove std:: from primitive intra-doc link tooltips
2023-03-15 11:34:37 -07:00
Michael Howell
881280f1f8
rustdoc: update test case with intra-doc link pointing to method
2023-02-22 08:40:47 -07:00
Michael Howell
ba4b026e80
rustdoc: add more tooltips to intra-doc links
...
This commit makes intra-doc link tooltips consistent with generated
links in function signatures and item tables, with the format
`itemtype foo::bar::baz`. This way, you can tell if a link points at
a trait or a type (for example) by mousing over it.
See also fce944d4e79b3a87ddf511206724edf33acfd704
2023-02-13 22:57:28 -07:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00