rust/tests/rustdoc-ui/doctest
Jubilee 62ba25de39
Rollup merge of #132210 - notriddle:notriddle/doctest-span-hack, r=GuillaumeGomez
rustdoc: make doctest span tweak a 2024 edition change

Fixes #132203

This is a compatibility hack, because I think the new behavior is better. When an A `include_str!` B, and B `include_str!` C, the path to C should be resolved relative to B, not A. That's how `include!` itself works, so that's how `include_str!` with should work.
2024-10-30 14:01:37 -07:00
..
auxiliary rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
block-doc-comment.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
block-doc-comment.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
cfg-test.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
cfg-test.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
check-attr-test.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
check-attr-test.stderr Improve mistyped docblock attribute warning messages 2024-09-28 18:38:11 +02:00
check-cfg-test.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
check-cfg-test.stderr Move --check-cfg documentation to stable books 2024-04-15 21:49:56 +02:00
check-cfg-test.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
dead-code-2024.rs Add regression tests for #130681 2024-10-01 17:08:01 +02:00
dead-code-2024.stdout Add regression tests for #130681 2024-10-01 17:08:01 +02:00
dead-code.rs Add regression tests for #130681 2024-10-01 17:08:01 +02:00
dead-code.stdout Add regression tests for #130681 2024-10-01 17:08:01 +02:00
display-output.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
display-output.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doc-comment-multi-line-attr.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
doc-comment-multi-line-attr.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doc-comment-multi-line-cfg-attr.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
doc-comment-multi-line-cfg-attr.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doc-test-attr-pass.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
doc-test-attr.rs Update ui tests 2024-02-29 14:43:43 +01:00
doc-test-attr.stderr Update ui tests 2024-02-29 14:43:43 +01:00
doc-test-doctest-feature.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
doc-test-doctest-feature.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doc-test-rustdoc-feature.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
doc-test-rustdoc-feature.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doctest-edition.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
doctest-edition.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
doctest-multiline-crate-attribute.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
doctest-multiline-crate-attribute.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
doctest-no-run-invalid-langstring-124577.rs rustdoc: move invalid langstring test to UI 2024-08-09 07:57:46 -07:00
doctest-no-run-invalid-langstring-124577.stdout rustdoc: move invalid langstring test to UI 2024-08-09 07:57:46 -07:00
doctest-output-include-fail.md rustdoc: use the correct span for doctests 2024-09-19 13:57:44 -07:00
doctest-output-include-fail.rs rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
doctest-output-include-fail.stdout rustdoc: use the correct span for doctests 2024-09-19 13:57:44 -07:00
doctest-output.edition2015.stdout rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
doctest-output.edition2024.stdout rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
doctest-output.rs rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
failed-doctest-compile-fail.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
failed-doctest-compile-fail.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
failed-doctest-extra-semicolon-on-item.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
failed-doctest-extra-semicolon-on-item.stdout Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
failed-doctest-missing-codes.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
failed-doctest-missing-codes.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
failed-doctest-output-windows.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
failed-doctest-output-windows.stdout Manual find replace updates 2023-11-24 21:04:51 +01:00
failed-doctest-output.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
failed-doctest-output.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
failed-doctest-should-panic-2021.rs Fix commands syntax in rustdoc-ui tests 2024-08-13 20:14:57 +02:00
failed-doctest-should-panic-2021.stdout Add/update `rustdoc-ui` tests to check new merged doctests 2024-08-13 20:14:54 +02:00
failed-doctest-should-panic.rs Add/update `rustdoc-ui` tests to check new merged doctests 2024-08-13 20:14:54 +02:00
failed-doctest-should-panic.stdout Don't special-case if there is only one merged doctest 2024-08-13 20:14:56 +02:00
merged-ignore-no_run.rs Fix commands syntax in rustdoc-ui tests 2024-08-13 20:14:57 +02:00
merged-ignore-no_run.stdout Add more merged doctests tests 2024-08-13 20:14:57 +02:00
nested-main.rs Add regression test for #131893 2024-10-24 21:35:15 +02:00
nested-main.stdout Add regression test for #131893 2024-10-24 21:35:15 +02:00
no-run-flag-error.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
no-run-flag-error.stderr Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
no-run-flag.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
no-run-flag.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
nocapture-fail.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
nocapture-fail.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
nocapture-fail.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
nocapture.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
nocapture.stderr Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
nocapture.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
non-local-defs-impl.rs Update rustdoc doctest non_local_defs impl test 2024-09-23 10:01:59 +02:00
non-local-defs-impl.stdout Remove deprecation note in the `non_local_definitions` warning 2024-10-11 21:21:32 +02:00
non_local_defs.rs Revert "Switch back `non_local_definitions` lint to allow-by-default" 2024-09-23 09:23:04 +02:00
non_local_defs.stderr Remove deprecation note in the `non_local_definitions` warning 2024-10-11 21:21:32 +02:00
non_local_defs.stdout Revert "Switch back `non_local_definitions` lint to allow-by-default" 2024-09-23 09:23:04 +02:00
private-doc-test.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
private-item-doc-test.rs Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
private-item-doc-test.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
private-public-item-doc-test.rs Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
private-public-item-doc-test.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
public-reexported-item-doc-test.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
relative-path-include-bytes-132203.edition2015.stdout Ignore Windows due to its differing path syntax 2024-10-30 12:39:05 -07:00
relative-path-include-bytes-132203.edition2024.stdout rustdoc: make doctest span tweak a 2024 edition change 2024-10-26 17:56:38 -07:00
relative-path-include-bytes-132203.rs Ignore Windows due to its differing path syntax 2024-10-30 12:39:05 -07:00
run-directory.correct.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
run-directory.incorrect.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
run-directory.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
standalone-warning-2024.rs Rename doctest attribute `standalone-crate` into `standalone_crate` for coherency 2024-09-29 13:01:41 +02:00
standalone-warning-2024.stderr Rename doctest attribute `standalone-crate` into `standalone_crate` for coherency 2024-09-29 13:01:41 +02:00
standalone-warning.rs Rename doctest attribute `standalone-crate` into `standalone_crate` for coherency 2024-09-29 13:01:41 +02:00
test-compile-fail1.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
test-compile-fail1.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
test-compile-fail2.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
test-compile-fail2.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
test-compile-fail3.rs [AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives 2024-02-22 16:04:04 +00:00
test-compile-fail3.stderr Be more accurate about calculating `display_col` from a `BytePos` 2024-07-18 20:08:38 +00:00
test-no_std.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
test-no_std.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
test-type.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
test-type.stdout Move some rustdoc-ui tests to subdirectories 2023-04-29 11:36:19 -05:00
unparseable-doc-test.rs Always use a colon in `//@ normalize-*:` headers 2024-07-11 12:23:44 +10:00
unparseable-doc-test.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
wrong-ast-2024.rs Fix commands syntax in rustdoc-ui tests 2024-08-13 20:14:57 +02:00
wrong-ast-2024.stdout Don't special-case if there is only one merged doctest 2024-08-13 20:14:56 +02:00
wrong-ast.rs Fix commands syntax in rustdoc-ui tests 2024-08-13 20:14:57 +02:00
wrong-ast.stdout Don't special-case if there is only one merged doctest 2024-08-13 20:14:56 +02:00