rust/tests/rustdoc-ui
Michael Howell 1a77d9a54d rustdoc: get unnormalized link destination for suggestions
Fixes #110111

This bug, and the workaround in this commit, is closely linked to
[raphlinus/pulldown-cmark#441], getting offsets of link
components. In particular, pulldown-cmark doesn't provide the
offsets of the contents of a link.

To work around this, rustdoc parser parts of a link definition
itself.

[raphlinus/pulldown-cmark#441]: https://github.com/raphlinus/pulldown-cmark/issues/441
2023-05-26 18:38:46 -07:00
..
auxiliary Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
check-cfg Improve check-cfg diagnostics (part 1) 2023-05-05 13:06:48 +02:00
coverage Update tests for rustc_doc_primitive 2023-03-30 22:56:52 +02:00
doctest Improve check-cfg diagnostics (part 1) 2023-05-05 13:06:48 +02:00
error-in-impl-trait Add a failing rustdoc-ui test for public infinite recursive type 2023-04-18 14:13:44 +02:00
generate-link-to-definition Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
intra-doc rustdoc: get unnormalized link destination for suggestions 2023-05-26 18:38:46 -07:00
issues Don't use implied trait predicates in gather_explicit_predicates_of 2023-05-01 15:45:28 +00:00
lints move lint tests into subdirectories 2023-04-29 11:36:19 -05:00
scrape-examples Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
suggestions
ambiguous-inherent-assoc-ty.rs
bounded-hr-lifetime.rs
bounded-hr-lifetime.stderr
check-doc-alias-attr-location.rs
check-doc-alias-attr-location.stderr
check-doc-alias-attr.rs
check-doc-alias-attr.stderr
commandline-argfile-badutf8.args
commandline-argfile-badutf8.rs
commandline-argfile-badutf8.stderr
commandline-argfile-missing.rs
commandline-argfile-missing.stderr
commandline-argfile.args
commandline-argfile.rs
const_arg_in_type_position.rs rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
const_arg_in_type_position.stderr rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
const-evalutation-ice.rs
const-evalutation-ice.stderr
crate-reference-in-block-module.rs rustdoc: Don't crash on crate references in blocks 2023-03-10 17:49:13 +01:00
crate-reference-in-block-module.stderr rustdoc: Don't crash on crate references in blocks 2023-03-10 17:49:13 +01:00
deprecated-attrs.rs
deprecated-attrs.stderr
deref-generic.rs
diagnostic-width.rs
diagnostic-width.stderr
doc-alias-assoc-const.rs
doc-alias-assoc-const.stderr
doc-alias-crate-level.rs
doc-alias-crate-level.stderr
doc-alias-same-name.rs
doc-alias-same-name.stderr
doc-cfg.rs
doc-cfg.stderr
doc-include-suggestion.rs
doc-include-suggestion.stderr
feature-gate-doc_cfg_hide.rs
feature-gate-doc_cfg_hide.stderr
ice-bug-report-url.rs Fix backtrace normalization in ice-bug-report-url.rs 2023-05-11 13:59:38 +02:00
ice-bug-report-url.stderr Fix backtrace normalization in ice-bug-report-url.rs 2023-05-11 13:59:38 +02:00
ignore-block-help.rs
ignore-block-help.stderr
impl-fn-nesting.rs
impl-fn-nesting.stderr
infinite-recursive-type.rs
infinite-recursive-type.stderr
invalid_associated_const.rs rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid_associated_const.stderr rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid_const_in_lifetime_position.rs rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid_const_in_lifetime_position.stderr rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid_infered_static_and_const.rs rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid_infered_static_and_const.stderr rustdoc: run more HIR validation to mirror rustc 2023-03-30 14:55:03 +02:00
invalid-cfg.rs
invalid-cfg.stderr
invalid-keyword.rs
invalid-keyword.stderr
invalid-syntax.rs
invalid-syntax.stderr
invalid-theme-name.rs
invalid-theme-name.stderr
issue-110629-private-type-cycle-dyn.rs rustdoc: catch and don't blow up on impl Trait cycles 2023-04-29 16:53:02 -07:00
issue-110629-private-type-cycle-dyn.stderr rustdoc: catch and don't blow up on impl Trait cycles 2023-04-29 16:53:02 -07:00
issue-110629-private-type-cycle.rs rustdoc: catch and don't blow up on impl Trait cycles 2023-04-29 16:53:02 -07:00
macro-docs.rs
macro-docs.stderr
macro-docs.stdout
mismatched_arg_count.rs rustdoc: remove excess from rustdoc test 2023-03-30 14:55:03 +02:00
mismatched_arg_count.stderr rustdoc: remove excess from rustdoc test 2023-03-30 14:55:03 +02:00
normalize-cycle.rs
normalize-overflow.rs
output-format-html-stable.rs
proc_macro_bug.rs
proc_macro_bug.stderr
range-pattern.rs
recursive-deref-ice.rs
rustc-check-passes.rs
rustc-check-passes.stderr
search-index-generics-recursion-bug-issue-59502.rs
track-diagnostics.rs
track-diagnostics.stderr
tuple-variadic-check.rs
tuple-variadic-check.stderr
unable-fulfill-trait.rs
unable-fulfill-trait.stderr
unescaped_backticks.rs rustdoc: add regression test for broken link due to double backticks 2023-05-22 11:35:25 +02:00
unescaped_backticks.stderr rustdoc: add regression test for broken link due to double backticks 2023-05-22 11:35:25 +02:00
unused-extern-crate.rs
use_both_out_dir_and_output_options.rs
use_both_out_dir_and_output_options.stderr
wasm-safe.rs