rust/tests/rustdoc
bors 05965ae238 Auto merge of #124577 - GuillaumeGomez:stabilize-custom_code_classes_in_docs, r=rustdoc
Stabilize `custom_code_classes_in_docs` feature

Fixes #79483.

This feature has been around for quite some time now, I think it's fine to stabilize it now.

## Summary

## What is the feature about?

In short, this PR changes two things, both related to codeblocks in doc comments in Rust documentation:

 * Allow to disable generation of `language-*` CSS classes with the `custom` attribute.
 * Add your own CSS classes to a code block so that you can use other tools to highlight them.

#### The `custom` attribute

Let's start with the new `custom` attribute: it will disable the generation of the `language-*` CSS class on the generated HTML code block. For example:

```rust
/// ```custom,c
/// int main(void) {
///     return 0;
/// }
/// ```
```

The generated HTML code block will not have `class="language-c"` because the `custom` attribute has been set. The `custom` attribute becomes especially useful with the other thing added by this feature: adding your own CSS classes.

#### Adding your own CSS classes

The second part of this feature is to allow users to add CSS classes themselves so that they can then add a JS library which will do it (like `highlight.js` or `prism.js`), allowing to support highlighting for other languages than Rust without increasing burden on rustdoc. To disable the automatic `language-*` CSS class generation, you need to use the `custom` attribute as well.

This allow users to write the following:

```rust
/// Some code block with `{class=language-c}` as the language string.
///
/// ```custom,{class=language-c}
/// int main(void) {
///     return 0;
/// }
/// ```
fn main() {}
```

This will notably produce the following HTML:

```html
<pre class="language-c">
int main(void) {
    return 0;
}</pre>
```

Instead of:

```html
<pre class="rust rust-example-rendered">
<span class="ident">int</span> <span class="ident">main</span>(<span class="ident">void</span>) {
    <span class="kw">return</span> <span class="number">0</span>;
}
</pre>
```

To be noted, we could have written `{.language-c}` to achieve the same result. `.` and `class=` have the same effect.

One last syntax point: content between parens (`(like this)`) is now considered as comment and is not taken into account at all.

In addition to this, I added an `unknown` field into `LangString` (the parsed code block "attribute") because of cases like this:

```rust
/// ```custom,class:language-c
/// main;
/// ```
pub fn foo() {}
```

Without this `unknown` field, it would generate in the DOM: `<pre class="language-class:language-c language-c">`, which is quite bad. So instead, it now stores all unknown tags into the `unknown` field and use the first one as "language". So in this case, since there is no unknown tag, it'll simply generate `<pre class="language-c">`. I added tests to cover this.

EDIT(camelid): This description is out-of-date. Using `custom,class:language-c` will generate the output `<pre class="language-class:language-c">` as would be expected; it treats `class:language-c` as just the name of a language (similar to the langstring `c` or `js` or what have you) since it does not use the designed class syntax.

Finally, I added a parser for the codeblock attributes to make it much easier to maintain. It'll be pretty easy to extend.

As to why this syntax for adding attributes was picked: it's [Pandoc's syntax](https://pandoc.org/MANUAL.html#extension-fenced_code_attributes). Even if it seems clunkier in some cases, it's extensible, and most third-party Markdown renderers are smart enough to ignore Pandoc's brace-delimited attributes (from [this comment](https://github.com/rust-lang/rust/pull/110800#issuecomment-1522044456)).

r? `@notriddle`
2024-06-01 10:18:01 +00:00
..
auxiliary Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
const-generics [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
deref Update rustdoc tests for stability display 2023-11-29 12:10:16 +01:00
doctest [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
duplicate_impls rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
generic-associated-types rustdoc: render the assoc ty body before the where-clause 2023-06-21 21:53:55 +02:00
inline_cross Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
inline_local Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
intra-doc [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
intra-doc-crate [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
notable-trait rustdoc: Negative impls are not notable 2024-05-14 20:40:59 -04:00
primitive Add f16 and f128 to rustdoc's PrimitiveType 2024-04-06 23:47:40 -04:00
src-links Move /src/test to /tests 2023-01-11 09:32:08 +00:00
synthetic_auto Move tests into appropriate subdirectories 2024-05-21 21:21:26 -07:00
test_option_check [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
type-alias Add test case for primitive links in alias js 2024-02-24 16:47:29 -07:00
alias-reexport2.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
alias-reexport.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
all.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anchor-id-duplicate-method-name-25001.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
anchor-id-trait-method-15169.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
anchor-id-trait-tymethod-28478.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
anchors.no_const_anchor2.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.no_const_anchor.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.no_method_anchor.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.no_trait_method_anchor.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.no_tymethod_anchor.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.no_type_anchor2.html Restore channel placeholder 2023-04-29 15:36:03 -04:00
anchors.no_type_anchor.html rustdoc: use src consistently over source in code 2023-07-14 16:38:01 -07:00
anchors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anonymous-lifetime.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anonymous-reexport.rs Update rustdoc anonymous reexport test and add regression test for #108931 2023-03-09 18:08:22 +01:00
array-links.link_box_generic.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-links.link_box_u32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-links.link_slice_generic.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-links.link_slice_u32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-links.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
asm-foreign2.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
asm-foreign.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
asref-for-and-of-local-82465.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
assoc-consts-version.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assoc-consts.rs rustdoc: re-elide cross-crate default trait object lifetime bounds 2023-06-07 13:29:36 +02:00
assoc-item-cast.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
assoc-type-bindings-20646.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
assoc-types.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
associated-consts.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
async-fn-opaque-item.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
async-fn.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
async-move-doctest.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
async-trait-sig.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
async-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
attribute-rendering.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
attributes.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
auto_aliases.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-impl-for-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-impl-primitive.rs Update tests for rustc_doc_primitive 2023-03-30 22:56:52 +02:00
auto-trait-bounds-by-associated-type-50159.rs Expose Freeze trait again 2024-02-29 13:55:11 +00:00
auto-trait-bounds-inference-variables-54705.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
auto-trait-bounds-where-51236.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
auto-trait-negative-impl-55321.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
auto-trait-not-send.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-traits.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
bad-codeblock-syntax.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
blank-line-in-doc-block-47197.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
blanket-impl-29503.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
blanket-impl-78673.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
blanket-reexport-item.rs rustdoc: update test cases for changes to the printing style 2023-09-21 15:16:44 -07:00
bounds.rs rustdoc: fix and refactor HTML rendering a bit 2024-02-16 21:29:16 +01:00
cap-lints.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cfg_doc_reexport.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
cfg-doctest.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
check-source-code-urls-to-def-std.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
check-source-code-urls-to-def.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
check-styled-link.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
check.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
codeblock-title.rs rustdoc: merge doctest tooltip with notable traits tooltip 2023-01-27 09:04:39 -07:00
comment-in-doctest.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
compiler-derive-proc-macro.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
const-display.rs rustdoc: Show "const" for const-unstable if also overall unstable 2024-05-26 21:06:02 -07:00
const-doc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
const-effect-param.rs rustdoc: properly elide cross-crate host effect args 2023-11-05 00:56:54 +01:00
const-fn-76501.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
const-fn-effects.rs Hide host effect params from docs 2023-10-12 16:14:54 +00:00
const-fn.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
const-intrinsic.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
const-rendering-macros-33302.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
const-underscore.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const-value-display.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
constructor-imports.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
crate-version-escape.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
crate-version-extra.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
crate-version.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
cross-crate-hidden-assoc-trait-items.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
cross-crate-hidden-impl-parameter.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
cross-crate-links.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
cross-crate-primitive-doc.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
custom_code_classes.rs Stabilize custom_code_classes_in_docs feature 2024-05-01 16:45:27 +02:00
decl_macro_priv.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
decl_macro.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
decl-line-wrapping-empty-arg-list.decl.html rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list 2023-06-24 23:39:35 +02:00
decl-line-wrapping-empty-arg-list.rs rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list 2023-06-24 23:39:35 +02:00
decl-trailing-whitespace.declaration.html Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
decl-trailing-whitespace.rs Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
deduplicate-glob-import-impl-21474.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
deduplicate-trait-impl-22025.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
deep-structures.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
default-impl.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
default-theme.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
default-trait-method-link.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
default-trait-method.rs Add tests for default unsafe trait methods 2023-06-24 23:14:57 -04:00
demo-allocator-54478.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
deprecated-future-staged-api.rs Remove mention of rust to make the error message generic. 2023-12-05 09:18:41 +01:00
deprecated-future.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deprecated-impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deprecated.rs Fix improper escaping of deprecation reasons 2023-03-20 05:21:51 +00:00
deref-methods-19190-foreign-type.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
deref-methods-19190-inline.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
deref-methods-19190.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
deref-mut-35169-2.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
deref-mut-35169.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
description_default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
description.rs Add check-pass tests and fix test behavior 2023-08-18 15:19:18 +08:00
disambiguate-anchors-32890.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
disambiguate-anchors-header-29449.rs Update rustdoc headings tests 2023-12-05 15:59:40 +01:00
display-hidden-items.rs tests 2024-03-14 14:51:01 +01:00
doc_auto_cfg_nested_impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-assoc-item.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
doc-attr-comment-mix-42760.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
doc-auto-cfg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-cfg-hide.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
doc-cfg-implicit-gate.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
doc-cfg-implicit.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
doc-cfg-inherit-from-module-79201.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
doc-cfg-simplification.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-cfg-target-feature.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
doc-cfg-traits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-cfg.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
doc-hidden-method-13698.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
doc-hidden-private-67851-both.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
doc-hidden-private-67851-hidden.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
doc-hidden-private-67851-neither.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
doc-hidden-private-67851-private.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
doc-hidden-trait-implementors-33069.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
doc-proc-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
doc-test-attr-18199.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
document-hidden-items-15347.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
document-item-with-associated-const-in-where-clause.rs Use ObligationCtxt::new_in_snapshot in satisfied_from_param_env 2023-01-30 19:04:59 +00:00
double-hyphen-to-dash.rs Add rustdoc test for double-hyphen to dash doc comment conversion 2023-06-02 13:51:01 +02:00
double-quote-escape.rs rustdoc: use the same URL escape rules for fragments as for examples 2023-02-03 17:58:26 -07:00
duplicate-cfg.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
duplicate-flags.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
duplicated_impl.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
duplicated-glob-reexport-60522.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
early-unindent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
edition-doctest.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
edition-flag.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
elided-lifetime.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
empty-doc-comment.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
empty-impl-block-private-with-doc.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
empty-impl-block-private.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
empty-impl-block.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
empty-impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
empty-mod-private.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
empty-mod-public.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
empty-section.rs Expose Freeze trait again 2024-02-29 13:55:11 +00:00
ensure-src-link.rs Update rustdoc tests for stability display 2023-11-29 12:10:16 +01:00
enum-headings.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
enum-variant-doc-hidden-field-88600.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
enum-variant-fields-heading.rs Add regression test for #118195 2023-12-04 12:13:24 +01:00
enum-variant-fields-heading.variants.html Add regression test for #118195 2023-12-04 12:13:24 +01:00
enum-variant-private-46767.rs Add URL to test cases 2023-11-20 11:50:25 -07:00
enum-variant-reexport-35488.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
enum-variant-value.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-default-method.no_href_on_anchor.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-default-method.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-fn-22038.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
extern-html-root-url-precedence.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-html-root-url.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-impl-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-links.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
extern-method.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
external-cross.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
external-doc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
external-macro-src.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
feature-gate-doc_auto_cfg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ffi.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
files-creation-hidden.rs Add @files checks in rustdoc tests 2023-06-23 15:12:48 +02:00
files-creation-private.rs Add @files checks in rustdoc tests 2023-06-23 15:12:48 +02:00
fn-bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fn-pointer-arg-name.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
fn-sidebar.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fn-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
footnote-definition-without-blank-line-100638.rs Add regression test for #100638 2024-01-29 14:14:03 +01:00
footnote-in-summary.rs Add test for footnote references in doc summary 2023-03-19 18:02:52 +01:00
force-target-feature.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
foreign-implementors-js-43701.rs Add URL to test cases 2023-11-20 11:50:25 -07:00
foreigntype-reexport.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
foreigntype.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic_const_exprs.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
generic-const-items.rs Add rustdoc tests for generic const items 2023-07-28 22:23:21 +02:00
generic-impl.rs rustdoc: update test cases for changes to the printing style 2023-09-21 15:16:44 -07:00
glob-reexport-attribute-merge-120487.rs Add regression test for #120487 2024-01-30 18:14:09 +01:00
glob-reexport-attribute-merge-doc-auto-cfg.rs Add regression test for doc_auto_cfg feature handling with glob reexports 2024-02-01 11:47:02 +01:00
glob-shadowing-const.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
glob-shadowing.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
heading-levels-89309.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
hidden-extern-34025.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
hidden-impls.rs rustdoc: rename /implementors to /impl.trait 2023-10-22 15:47:34 -07:00
hidden-line.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hidden-methods.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hidden-private.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
hidden-trait-methods-with-document-hidden-items.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
hidden-trait-methods.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hidden-trait-struct-impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hide-complex-unevaluated-const-arguments.rs Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
hide-complex-unevaluated-consts.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hide-mut-methods-if-no-derefmut-impl-74083.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
hide-unstable-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
higher-ranked-trait-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
highlight-invalid-rust-12834.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
html-no-source.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
ice-reexport-crate-root-28927.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
ice-type-error-19181.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
impl-alias-substituted.rs Use proper impl self type for alias impl in rustdoc 2023-05-10 22:49:05 +00:00
impl-assoc-type-21092.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
impl-blanket-53689.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
impl-box.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-disambiguation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-everywhere.rs rustdoc: fix cross-crate impl-Sized 2023-07-26 02:11:35 +02:00
impl-in-const-block.rs Add regression test for impl blocks in const expr 2023-01-27 14:41:33 +01:00
impl-on-ty-alias-issue-119015.rs Add regression test for #119015 and update tests 2024-01-20 13:21:03 +01:00
impl-parts-crosscrate.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
impl-parts.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
impl-ref-20175.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
impl-trait-43869.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
impl-trait-alias.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-type-parameter-33592.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
implementor-stable-version.rs Update rustdoc tests for stability display 2023-11-29 12:10:16 +01:00
implementors-unstable-75588.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
impossible-default.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
include_str_cut.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
index-page.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
infinite-redirection-16265-1.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
infinite-redirection-16265-2.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
infinite-redirection.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inherent-projections.rs Handle inherent associated types fallout 2023-08-03 02:18:52 +02:00
inline-assoc-type-20727-bindings.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline-assoc-type-20727-bounds-deref.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline-assoc-type-20727-bounds-index.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline-assoc-type-20727-bounds.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline-default-methods.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
inline-private-with-intermediate-doc-hidden.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
inline-rename-34473.rs Add URL to test cases 2023-11-20 11:50:25 -07:00
internal.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
intra-doc-link-method-trait-impl-72340.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
invalid$crate$name.rs Update test names to not have dots 2024-03-05 09:02:33 +00:00
issue-99221-multiple-macro-rules-w-same-name.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-99221-multiple-structs-w-same-name.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-99734-multiple-foreigns-w-same-name.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-99734-multiple-mods-w-same-name.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-100204-inline-impl-through-glob-import.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-100241.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-100620.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-101743-bold-tag.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-102154.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-105735-overlapping-reexport-2.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
issue-105735-overlapping-reexport.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
issue-105952.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-106142.rs test(doc): no fallback marco resolution 2023-04-27 16:25:05 +08:00
issue-106421-not-internal.rs Add test cases for inlining compiler-private items 2024-02-24 15:38:55 -07:00
issue-106421.rs Add test cases for inlining compiler-private items 2024-02-24 15:38:55 -07:00
issue-107350.rs Add regression test for #107350 2023-01-27 12:11:01 +01:00
issue-107995.rs Add regression test for #107995 2023-02-18 23:24:58 +01:00
issue-108231.rs Add regression test for #108231 2023-02-20 20:19:21 +01:00
issue-108281.rs Add regression test for #108281 2023-02-21 16:26:06 +01:00
issue-108679-reexport-of-reexport.rs Addr regression test for #108679 2023-03-07 21:20:21 +01:00
issue-108925.rs Bless tidy 2023-03-27 18:58:07 +00:00
issue-108931-anonymous-reexport.rs Update rustdoc anonymous reexport test and add regression test for #108931 2023-03-09 18:08:22 +01:00
issue-109258-missing-private-inlining.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
issue-109449-doc-hidden-reexports.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
issue-109695-crate-doc-hidden.rs Add regression test for #109695 2023-03-29 16:17:48 +02:00
issue-110422-inner-private.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-110629-private-type-cycle.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-111064-reexport-trait-from-hidden-2.rs Add @files checks in rustdoc tests 2023-06-23 15:12:48 +02:00
issue-111064-reexport-trait-from-hidden.rs Add regression test for #111064 2023-05-05 21:33:44 +02:00
issue-111249-file-creation.rs Add @files checks in rustdoc tests 2023-06-23 15:12:48 +02:00
issue-113982-doc_auto_cfg-reexport-foreign.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
issue-115295-macro-const-display.rs Format macro const literals with pretty printer 2023-10-15 18:09:34 +02:00
issue-118180-empty-tuple-struct.rs Don't print "private fields" on empty tuple structs 2023-11-23 16:04:10 +01:00
item-desc-list-at-start.item-table.html rustdoc: avoid including <li> tags in item table short desc 2023-02-23 13:53:27 -07:00
item-desc-list-at-start.rs rustdoc: avoid including <li> tags in item table short desc 2023-02-23 13:53:27 -07:00
jump-to-def-doc-links-calls.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
jump-to-def-doc-links.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
jump-to-def-macro.rs Add regression test for link generation on foreign macro in jump to defintion feature 2024-02-27 16:20:11 +01:00
jump-to-non-local-method.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
keyword.rs rustdoc: remove unnecessary DOM class h1.fqn 2023-01-13 10:09:25 -07:00
legacy-const-generic.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
lifetime-name.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
line-breaks.rs rustdoc: fix up old test 2024-03-12 01:25:15 +01:00
link-assoc-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
link-extern-crate-33178.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
link-extern-crate-item-30109.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
link-extern-crate-title-33178.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
link-title-escape.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
links-in-headings.rs Add tests for headings anchor and links in headings 2023-12-05 15:59:40 +01:00
local-reexport-doc.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
logo-class-default.rs rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
logo-class-rust.rs Stop using the trigram of heaven as a hamburger button 2023-12-18 13:56:55 -07:00
logo-class.rs Stop using the trigram of heaven as a hamburger button 2023-12-18 13:56:55 -07:00
macro_pub_in_module.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
macro_rules-matchers.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-doc-comment-23812.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
macro-document-private-duplicate.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
macro-document-private.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
macro-generated-macro.macro_linebreak_pre.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-generated-macro.macro_morestuff_pre.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-generated-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-higher-kinded-function.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
macro-ice-16019.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
macro-in-async-block.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
macro-in-closure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-indirect-use.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-private-not-documented.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macros.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
manual_impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
markdown-60482.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
markdown-table-escape-pipe-27862.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
masked.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
method-anchor-in-blanket-impl-86620.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
method-link-foreign-trait-impl-17476.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
method-list.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mixing-doc-comments-and-attrs.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
mixing-doc-comments-and-attrs.S1_top-doc.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mixing-doc-comments-and-attrs.S2_top-doc.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mixing-doc-comments-and-attrs.S3_top-doc.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mod-stackoverflow.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
module-impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
multiple-import-levels.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
multiple-macro-rules-w-same-name-submodule-99221.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
multiple-mods-w-same-name-doc-inline-83375.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
multiple-mods-w-same-name-doc-inline-last-item-83375.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
must_implement_one_of.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mut-params.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
namespaces.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
negative-impl-sidebar.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
negative-impl.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
nested-items-issue-111415.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
nested-modules.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no_std-primitive.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-compiler-reexport.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
no-run-still-checks-lints.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
no-stack-overflow-25295.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
no-unit-struct-field.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non_lifetime_binders.rs rustdoc + rustdoc-json support for non_lifetime_binders 2023-03-28 16:50:49 +00:00
normalize-assoc-item.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
nul-error.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
playground-arg.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
playground-empty.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
playground-none.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
playground-syntax-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
playground.rs add extra indent spaces for rust-playground link 2024-02-15 18:57:21 +08:00
primitive-link.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
primitive-raw-pointer-dox-15318-3.rs rustdoc: add URLs for test issues 2023-09-27 17:22:18 -07:00
primitive-raw-pointer-link-15318.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-raw-pointer-link-no-inlined-15318-2.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-reexport.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-reference.rs Update tests for rustc_doc_primitive 2023-03-30 22:56:52 +02:00
primitive-slice-auto-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-tuple-auto-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-tuple-variadic.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
primitive-unit-auto-trait.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
private-fields-tuple-struct.rs Add regression test for private fields in tuple struct 2023-09-06 13:26:56 +02:00
private-non-local-fields-2.rs Always hide private fields in aliased type 2024-05-11 13:11:46 +02:00
private-non-local-fields.rs Always hide private fields in aliased type 2024-05-11 13:11:46 +02:00
private-type-alias.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
private-use-decl-macro-47038.rs Add URL to test cases 2023-11-20 11:50:25 -07:00
private-use.rs Fix regression for private in public 2023-07-26 15:29:45 +02:00
proc-macro.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
process-termination.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
pub-extern-crate.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
pub-method.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
pub-reexport-of-pub-reexport-46506.rs rustdoc: remove small from small-section-header 2023-11-29 13:40:07 -07:00
pub-use-extern-macros.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
pub-use-root-path-95873.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
public-impl-mention-private-generic-46380-2.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
range-arg-pattern.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
raw-ident-eliminate-r-hashtag.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
read-more-unneeded.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursion1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursion2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recursion3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
redirect-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
redirect-map-empty.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
redirect-map.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
redirect-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
redirect.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reexport-attr-merge.rs Update reexport-attr-merge rustdoc test 2023-06-03 19:57:17 +02:00
reexport-cfg.rs Add regression test for cfg merging on re-exports 2023-11-22 17:22:29 +01:00
reexport-check.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reexport-dep-foreign-fn.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reexport-doc-hidden-inside-private.rs Add/improve code comments 2023-06-26 16:38:14 +02:00
reexport-doc-hidden.rs Update tests for re-exports of doc hidden macros 2023-05-26 17:31:54 +02:00
reexport-doc.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reexport-hidden-macro.rs Correctly handle multiple re-exports of bang macros at the same level 2023-05-27 00:25:37 +02:00
reexport-macro.rs Add regression test for reexported macros docs 2023-02-10 18:37:32 +01:00
reexport-of-doc-hidden.rs Correctly handle multiple re-exports of bang macros at the same level 2023-05-27 00:25:37 +02:00
reexport-stability-tags-deprecated-and-portability.rs Update existing tests 2023-11-22 17:22:30 +01:00
reexport-stability-tags-unstable-and-portability.rs Update existing tests 2023-11-22 17:22:30 +01:00
reexports-of-same-name.rs Add test to ensure there are no duplicated imports 2023-02-22 17:49:22 +01:00
reexports-priv.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
reexports.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
remove-duplicates.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
remove-url-from-headings.rs Update rustdoc headings tests 2023-12-05 15:59:40 +01:00
render-enum-variant-structlike-32395.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
repr.rs rustdoc: hide repr(transparent) if it isn't part of the public ABI 2023-09-18 19:30:10 +02:00
resolve-ice-124363.rs Fix the assertion crash from rustdoc document indent widths 2024-04-28 11:17:09 +08:00
return-impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-2632-const-trait-impl.rs rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
rustc-incoherent-impls.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
rustc-macro-crate.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
safe-intrinsic.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
same-crate-hidden-impl-parameter.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sanitizer-option.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
search-index-primitive-inherent-method-23511.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
search-index-summaries.rs rustdoc-search: shard the search result descriptions 2024-03-16 22:07:30 -07:00
search-index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
short-docblock-codeblock.rs rustdoc: simplify DOM for .item-table 2023-02-07 19:00:42 -07:00
short-docblock.rs Update rustdoc headings tests 2023-12-05 15:59:40 +01:00
short-line.md Move /src/test to /tests 2023-01-11 09:32:08 +00:00
show-const-contents.rs Reuse const rendering from rustdoc in rmeta encoding 2023-09-01 17:22:48 -04:00
sidebar-all-page.rs rustdoc: Rename "Type Definition" to "Type Alias" 2023-08-21 12:53:39 -07:00
sidebar-items.rs tests: object-safety section in traits 2023-10-29 22:57:45 +01:00
sidebar-link-generation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sidebar-links-to-foreign-impl.rs rustdoc: update test cases for changes to the printing style 2023-09-21 15:16:44 -07:00
sidebar-trait-impl-disambiguate-78701.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
sized_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-links.link_box_generic.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-links.link_box_u32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-links.link_slice_generic.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-links.link_slice_u32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-links.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
smart-punct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
smoke.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
sort-53812.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
sort-modules-by-appearance.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
source-code-highlight.rs Add regression test for inclusion of whitespace characters in rustdoc highlighting 2024-02-28 16:08:46 +01:00
source-file.rs rustdoc: use src consistently over source in JavaScript 2023-07-14 16:54:14 -07:00
source-version-separator.rs Handle structured stable attribute 'since' version in rustdoc 2023-10-24 17:34:59 -07:00
src-link-external-macro-26606.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
src-links-auto-impls.rs rustdoc: update test cases for changes to the printing style 2023-09-21 15:16:44 -07:00
src-links-external.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
src-links-implementor-43893.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
src-links-inlined-34274.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
src-links.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
src-mod-path-absolute-26995.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
stability.rs Sort unstable items last in rustdoc, instead of first 2023-11-23 17:20:13 -08:00
staged-api-deprecated-unstable-32374.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
staged-api-feature-issue-27759.rs Add URL to test case issues 2023-10-04 13:04:45 -07:00
static-root-path.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
static.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
strip-block-doc-comments-stars.docblock.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
strip-block-doc-comments-stars.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
strip-enum-variant.no-not-shown.html rustdoc: use JS to inline target type impl docs into alias 2023-10-22 15:56:14 -07:00
strip-enum-variant.rs rustdoc: use JS to inline target type impl docs into alias 2023-10-22 15:56:14 -07:00
strip-priv-imports-pass-27104.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
struct-arg-pattern.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
struct-field.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
struct-implementations-title.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
structfields.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
summary-codeblock-31899.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
summary-header-46377.rs rustdoc: rename issue-\d+.rs tests to have meaningful names (part 5) 2024-01-03 15:33:12 -07:00
summary-reference-link-30366.rs Add URL to test cases 2023-10-16 18:01:02 -07:00
tab_title.rs Update tests for rustc_doc_primitive 2023-03-30 22:56:52 +02:00
table-in-docblock.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
task-lists.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-lists.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
test-parens.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
test-strikethrough.rs rustdoc: add test for strikethrough with single tildes 2023-05-25 13:27:29 +00:00
thread-local-src.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
titles.rs rustdoc: show crate name beside small logo 2023-10-08 20:17:40 -07:00
toggle-item-contents.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
toggle-method.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
toggle-trait-fn.rs rustdoc: rename CSS rustdoc-toggle -> toggle and toggle -> settings-toggle 2023-01-13 12:38:03 -07:00
trait_alias.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
trait-alias-mention.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
trait-impl-items-links-and-anchors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-implementations-duplicate-self-45584.rs Add URL to test cases 2023-11-20 11:50:25 -07:00
trait-item-info.rs Add regression test for #121772 2024-03-01 15:33:02 +01:00
trait-object-safe.rs Strenghten tests/rustdoc/trait-object-safe.rs to prevent unforeseen regression 2023-12-23 11:28:33 +01:00
trait-self-link.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-src-link.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-visibility.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
traits-in-bodies-private.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
traits-in-bodies.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuple-struct-fields-doc.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
tuple-struct-where-clause-34928.rs rustdoc: move ICE tests to ui 2023-11-23 14:54:19 -07:00
tuples.link1_i32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.link1_t.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.link2_i32.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.link2_t.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.link2_tu.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.link_unit.html Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tuples.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
type-layout-flag-required.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
type-layout.rs Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
typedef-inner-variants-lazy_type_alias.rs rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
typedef-inner-variants.rs Add failing test for cross-crate enum in type alias 2024-05-19 20:13:18 -04:00
typedef.rs rustdoc: remove unused class has-srclink 2023-01-28 17:18:56 -07:00
underscore-import-61592.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-04-15 15:13:05 -07:00
underscore-type-in-trait-impl-96381.rs rustdoc: rename issue-\d+.rs tests to have meaningful names 2024-05-21 12:28:34 -07:00
unindent.md Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unindent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
union-fields-html.rs Add test to prevent regression for fields display 2023-06-21 17:42:53 +02:00
union.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unit-return.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
universal-impl-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unneeded-trait-implementations-title.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
use-attr.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
useless_lifetime_bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
variadic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
version-separator-without-source.rs Handle structured stable attribute 'since' version in rustdoc 2023-10-24 17:34:59 -07:00
viewpath-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
viewpath-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
visibility.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
where-clause-order.rs rustdoc: elide cross-crate default generic arguments 2023-10-30 16:44:52 +01:00
where-sized.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00
where.alpha_trait_decl.html Update snapshots of rustdoc tests to take into account the comment highlighting 2023-12-01 11:35:01 +01:00
where.bravo_trait_decl.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
where.charlie_fn_decl.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
where.golf_type_alias_decl.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
where.rs Render missing fields in tuple struct/enum as /* private fields */ 2023-09-06 11:16:05 +02:00
where.SWhere_Echo_impl.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
where.SWhere_Simd_item-decl.html Update snapshots of rustdoc tests to take into account the comment highlighting 2023-12-01 11:35:01 +01:00
where.SWhere_TraitWhere_item-decl.html rustdoc: use a newline instead of <br> to format code headers 2023-02-07 11:23:25 -07:00
whitespace-after-where-clause.enum2.html Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
whitespace-after-where-clause.enum.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
whitespace-after-where-clause.rs Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
whitespace-after-where-clause.struct2.html Accept less invalid Rust in rustdoc 2023-10-31 13:58:03 +00:00
whitespace-after-where-clause.struct.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
whitespace-after-where-clause.trait2.html rustdoc: trait bound formatting 2023-02-04 19:10:04 +01:00
whitespace-after-where-clause.trait.html rustdoc: div.where instead of fmt-newline class 2023-11-30 10:43:40 -07:00
whitespace-after-where-clause.union2.html Update snapshots of rustdoc tests to take into account the comment highlighting 2023-12-01 11:35:01 +01:00
whitespace-after-where-clause.union.html Update snapshots of rustdoc tests to take into account the comment highlighting 2023-12-01 11:35:01 +01:00
without-redirect.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
wrapping.rs rustdoc: remove unnecessary wrapper div.item-decl from HTML 2023-01-30 11:06:18 -07:00