rust/src/test/rustdoc-ui
Andy Russell 7f3e2c0d37
refactor and reword intra-doc link errors
This commit refactors intra-doc link error reporting to deduplicate code
and decouple error construction from the type of error. This greatly
improves flexibility at each error construction site, while reducing the
complexity of the diagnostic creation.

This commit also rewords the diagnostics for clarity and style:

- Diagnostics should not end in periods.
- It's unnecessary to say "ignoring it". Since this is a warning by
  default, it's already clear that the link is ignored.
2020-07-20 18:44:15 -04:00
..
coverage Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
error-in-impl-trait --bless 2020-07-15 10:54:05 -04:00
.gitattributes fix intra-link resolution spans in block comments 2018-12-10 21:08:26 -05:00
cfg-test.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
cfg-test.stdout stabilize cfg(doctest) 2019-10-29 13:42:55 +01:00
check-attr-test.rs rustdoc: Rename invalid_codeblock_attribute lint to be plural 2020-07-07 18:29:26 +01:00
check-attr-test.stderr rustdoc: Rename invalid_codeblock_attribute lint to be plural 2020-07-07 18:29:26 +01:00
check-attr.rs rustdoc: Rename invalid_codeblock_attribute lint to be plural 2020-07-07 18:29:26 +01:00
check-attr.stderr rustdoc: Rename invalid_codeblock_attribute lint to be plural 2020-07-07 18:29:26 +01:00
deny-intra-link-resolution-failure.rs Remove licenses 2018-12-25 21:08:33 -07:00
deny-intra-link-resolution-failure.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
deny-missing-docs-crate.rs Removed more copyright notices. 2019-01-13 19:47:02 +00:00
deny-missing-docs-crate.stderr fix one more test 2020-03-22 17:18:30 -05:00
deny-missing-docs-macro.rs Removed more copyright notices. 2019-01-13 19:47:02 +00:00
deny-missing-docs-macro.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
deprecated-attrs.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
deprecated-attrs.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
doc-test-doctest-feature.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
doc-test-doctest-feature.stdout Add and update rustdoc ui test 2019-10-10 11:37:13 +02:00
doc-test-rustdoc-feature.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
doc-test-rustdoc-feature.stdout Add new rustdoc-ui test to ensuire that rustdoc feature isn't passed down to doctests 2019-10-01 14:38:36 +02:00
doc-without-codeblock.rs Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
doc-without-codeblock.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
doctest-output.rs remove extra space from crate-level doctest names 2020-05-15 23:56:23 -04:00
doctest-output.stdout remove extra space from crate-level doctest names 2020-05-15 23:56:23 -04:00
failed-doctest-compile-fail.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-compile-fail.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-missing-codes.stdout Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
failed-doctest-output.rs Improve Rustdoc's handling of procedural macros 2019-08-24 13:11:57 -04:00
failed-doctest-output.stdout Update output-default.json and rustdoc test 2020-01-12 15:37:50 +00:00
failed-doctest-should-panic.rs do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
failed-doctest-should-panic.stdout do not print panic message on doctest failures 2019-05-22 13:27:53 -04:00
impl-fn-nesting.rs Catch errors for any new item, not just trait implementations 2020-07-15 10:54:06 -04:00
impl-fn-nesting.stderr Catch errors for any new item, not just trait implementations 2020-07-15 10:54:06 -04:00
infinite-recursive-type.rs Don't ICE on infinitely recursive types 2020-07-15 10:54:05 -04:00
infinite-recursive-type.stderr Don't ICE on infinitely recursive types 2020-07-15 10:54:05 -04:00
intra-doc-alias-ice.rs Remove licenses 2018-12-25 21:08:33 -07:00
intra-doc-alias-ice.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-link-span-ice-55723.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-link-span-ice-55723.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-ambiguity.rs overhaul intra-doc-link ambiguity warning 2019-03-15 14:15:06 -04:00
intra-links-ambiguity.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
intra-links-anchors.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-anchors.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-private.public.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-private.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-warning-crlf.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-warning-crlf.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-warning.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
intra-links-warning.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
invalid-syntax.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
invalid-syntax.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
issue-58473-2.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
issue-58473.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
issue-61732.rs resolve: Fix regression in resolution of raw keywords in paths 2020-03-14 19:21:38 +03:00
issue-61732.stderr resolve: Fix regression in resolution of raw keywords in paths 2020-03-14 19:21:38 +03:00
issue-74134.public.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
issue-74134.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
lint-group.rs refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
lint-group.stderr refactor and reword intra-doc link errors 2020-07-20 18:44:15 -04:00
lint-missing-doc-code-example.rs Update rustdoc-ui tests 2019-05-18 12:45:29 +02:00
lint-missing-doc-code-example.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
no-crate-level-doc-lint.rs Update lint name to follow convention 2020-03-22 13:04:23 +01:00
no-crate-level-doc-lint.stderr Update lint name to follow convention 2020-03-22 13:04:23 +01:00
private-item-doc-test.rs Fix some rustdoc error capitalization 2019-11-24 18:42:22 -08:00
private-item-doc-test.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
reference-link-has-one-warning.rs Generate docs for links to private items when passed --document-private 2020-06-26 07:23:39 -04:00
reference-link-has-one-warning.stderr Generate docs for links to private items when passed --document-private 2020-06-26 07:23:39 -04:00
test-compile-fail1.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail1.stderr rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail2.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail2.stderr rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail3.rs rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
test-compile-fail3.stderr Update UI tests 2020-06-21 16:40:36 +02:00
test-no_std.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00
test-no_std.stdout rustdoc: Fix handling of compile errors when running rustdoc --test 2020-01-18 23:51:06 +00:00
unparseable-doc-test.rs report fatal errors during doctest parsing 2019-04-24 00:03:53 -04:00
unparseable-doc-test.stdout Update UI tests 2020-06-21 16:40:36 +02:00
unused-braces-lint.rs Add rustdoc regression test for the unused_braces lint 2020-04-24 19:15:07 +02:00
unused.rs Moving all rustdoc-ui tests to check-pass 2020-04-19 16:40:53 -07:00