rust/tests/rustdoc-ui/intra-doc
Michael Howell 61a97448e5 rustdoc: improve refdef handling in the unresolved link lint
This commit takes advantage of a feature in pulldown-cmark that
makes the list of link definitions available to the consuming
application. It produces unresolved link warnings for refdefs
that aren't used, and can now produce exact spans for the dest
even when it has escapes.
2025-02-15 12:21:35 -07:00
..
auxiliary rustdoc: rename `issue-\d+.rs` tests to have meaningful names 2025-01-29 11:38:15 -07:00
.gitattributes Integrate crlf directly into related test file instead via of .gitattributes 2024-08-06 13:19:48 -07:00
alias-ice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias-ice.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
ambiguity.rs Update UI tests for primitive type ambiguity error renaming 2023-03-24 14:50:12 +01:00
ambiguity.stderr Update UI tests for primitive type ambiguity error renaming 2023-03-24 14:50:12 +01:00
anchors.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
anchors.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assoc-field.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
assoc-item-not-in-scope.rs move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
assoc-item-not-in-scope.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
assoc-mod-inner-outer.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
broken-link-in-unused-doc-string.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
broken-link-in-unused-doc-string.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
broken-reexport.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
crate-nonexistent.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
crate-nonexistent.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
deny-intra-link-resolution-failure.rs Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
deny-intra-link-resolution-failure.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
disambiguator-mismatch.rs rustdoc: prevent ctors from resolving 2024-10-03 22:01:23 -07:00
disambiguator-mismatch.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
double-anchor.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
double-anchor.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
email-address-localhost.rs Remove the `-test` suffix from normalize directives 2024-12-27 19:58:16 +11:00
errors.rs rustdoc: cleaner errors on disambiguator/namespace mismatches 2024-10-04 09:56:53 -07:00
errors.stderr rustdoc: cleaner errors on disambiguator/namespace mismatches 2024-10-04 09:56:53 -07:00
extern-crate-load.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
feature-gate-intra-doc-pointers.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
feature-gate-intra-doc-pointers.stderr Bless tests 2024-01-13 12:46:58 -05:00
field-ice.rs Add `field@` and `variant@` doc-link disambiguators 2024-09-19 19:16:53 -05:00
field-ice.stderr Add `field@` and `variant@` doc-link disambiguators 2024-09-19 19:16:53 -05:00
filter-out-private-2.rs Improve documentation for intra-doc links computation 2024-10-15 15:42:53 +02:00
filter-out-private-2.stderr Improve documentation for intra-doc links computation 2024-10-15 15:42:53 +02:00
filter-out-private.rs Add regression tests for #130233 2024-10-14 17:51:37 +02:00
filter-out-private.stderr Add regression tests for #130233 2024-10-14 17:51:37 +02:00
global-path.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
global-path.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
html-as-generics-intra-doc.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
html-as-generics-intra-doc.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ice-extern-trait-local-impl-104145.rs Give 104145, 103463, and 31948 more descriptive names 2025-01-30 12:05:31 -07:00
ice-priv-use-103463.rs Give 104145, 103463, and 31948 more descriptive names 2025-01-30 12:05:31 -07:00
import-inline-merge-module.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
import-inline-merge.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
incompatible-primitive-disambiguator.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incompatible-primitive-disambiguator.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-108653-associated-items-2.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-2.stderr Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-3.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-3.stderr Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-4.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-4.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
issue-108653-associated-items-5.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-5.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
issue-108653-associated-items-6.rs Update UI tests for primitive type ambiguity error renaming 2023-03-24 14:50:12 +01:00
issue-108653-associated-items-6.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
issue-108653-associated-items-7.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-7.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
issue-108653-associated-items-8.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items-8.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
issue-108653-associated-items-9.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
issue-108653-associated-items-10.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
issue-108653-associated-items.rs Add regression tests for #108653 2023-03-24 13:41:21 +01:00
issue-108653-associated-items.stderr Add `field@` and `variant@` doc-link disambiguators 2024-09-19 19:16:53 -05:00
issue-110495-suffix-with-space.rs rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence 2023-04-18 12:22:13 -07:00
issue-110495-suffix-with-space.stderr rustdoc: cleaner errors on disambiguator/namespace mismatches 2024-10-04 09:56:53 -07:00
issue-111189-resolution-ice.rs Add regression test for #111189 2023-05-23 15:33:43 +02:00
issue-111189-resolution-ice.stderr Add regression test for #111189 2023-05-23 15:33:43 +02:00
macro-rules-error.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
macro-rules-error.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-rules.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
malformed-generics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
malformed-generics.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-path-primitives.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
non-path-primitives.stderr Update UI tests for primitive type ambiguity error renaming 2023-03-24 14:50:12 +01:00
pointer-reexports-allowed.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
prim-conflict.rs Update UI tests for primitive type ambiguity error renaming 2023-03-24 14:50:12 +01:00
prim-conflict.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
private-from-crate-level.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
private-from-crate-level.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
private.private.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
private.public.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
private.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
proc-macro-doc.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
pub-export-lint.rs move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
pub-export-lint.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
pub-proc-item.rs only store valid proc marco item for doc link 2024-11-23 13:41:27 +08:00
reachable-non-exported.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
reference-link-reports-error-once.rs move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
reference-link-reports-error-once.stderr move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
reference-links.rs move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
reference-links.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
span-ice-55723.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
span-ice-55723.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
through-proc-macro.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
through-proc-macro.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unknown-disambiguator.rs Remove the `-test` suffix from normalize directives 2024-12-27 19:58:16 +11:00
unknown-disambiguator.stderr rustdoc: Cleanup broken link callbacks 2023-02-18 14:45:01 +04:00
unresolved-import-recovery.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unresolved-import-recovery.stderr Reword "crate not found" resolve message 2025-01-24 01:19:50 +00:00
unused-extern-crate.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
unused-extern-crate.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
value-ctor.rs rustdoc: prevent ctors from resolving 2024-10-03 22:01:23 -07:00
value-ctor.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
warning-crlf.rs Integrate crlf directly into related test file instead via of .gitattributes 2024-08-06 13:19:48 -07:00
warning-crlf.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
warning.rs rustdoc: point at span in `include_str!`-ed md file 2024-03-29 13:31:35 -07:00
warning.stderr rustdoc: point at span in `include_str!`-ed md file 2024-03-29 13:31:35 -07:00
weird-syntax.rs rustdoc: improve refdef handling in the unresolved link lint 2025-02-15 12:21:35 -07:00
weird-syntax.stderr rustdoc: improve refdef handling in the unresolved link lint 2025-02-15 12:21:35 -07:00