rust/tests/rustdoc-ui
bors 700938c078 Auto merge of #109808 - jyn514:debuginfo-options, r=michaelwoerister
Extend -Cdebuginfo with new options and named aliases

This is a rebase of https://github.com/rust-lang/rust/pull/83947, along with my best guess at what the new options mean. I tried to follow the LLVM source code to get a better idea but ran into quite a lot of trouble (https://rust-lang.zulipchat.com/#narrow/stream/187780-t-compiler.2Fwg-llvm/topic/go-to-definition.20in.20src.2Fllvm-project.3F). The description for the original PR follows below.

Note that the changes in this PR have already been through FCP: https://github.com/rust-lang/rust/pull/83947#issuecomment-878384979

Closes https://github.com/rust-lang/rust/pull/109311. Helps with https://github.com/rust-lang/rust/pull/104968.
r? `@michaelwoerister` cc `@cuviper`

---

The -Cdebuginfo=1 option was never line tables only and can't be due to backwards compatibility issues. This was clarified and an option for emitting line tables only was added. Additionally an option for emitting line info directives only was added, which is needed for some targets, i.e. nvptx. The debug info options should now behave similarly to clang's debug info options.

Fix https://github.com/rust-lang/rust/issues/60020
Fix https://github.com/rust-lang/rust/issues/64405
2023-04-04 20:01:05 +00:00
..
auxiliary Add regression test for #107918 2023-02-24 18:15:56 +01:00
coverage Update tests for rustc_doc_primitive 2023-03-30 22:56:52 +02:00
error-in-impl-trait
intra-doc Rollup merge of #109104 - GuillaumeGomez:fix-invalid-suggestion-ambiguous-intra-doc2, r=oli-obk,notriddle 2023-03-31 22:32:48 +02:00
suggestions
ambiguous-inherent-assoc-ty.rs
assoc-item-not-in-scope.rs
assoc-item-not-in-scope.stderr
bare-urls.fixed
bare-urls.rs
bare-urls.stderr
block-doc-comment.rs
block-doc-comment.stdout
bounded-hr-lifetime.rs
bounded-hr-lifetime.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
c-help.rs
c-help.stdout Preserve, clarify, and extend debug information 2023-03-31 07:28:39 -04:00
cfg-test.rs
cfg-test.stdout
check-attr-test.rs
check-attr-test.stderr
check-attr.rs
check-attr.stderr
check-cfg-test.rs
check-cfg-test.stderr
check-cfg-test.stdout
check-cfg-unstable.rs
check-cfg-unstable.stderr
check-cfg.rs
check-cfg.stderr
check-doc-alias-attr-location.rs
check-doc-alias-attr-location.stderr
check-doc-alias-attr.rs
check-doc-alias-attr.stderr
check-fail.rs Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
check-fail.stderr Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
check.rs Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
check.stderr Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
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
deny-intra-link-resolution-failure.rs
deny-intra-link-resolution-failure.stderr
deny-missing-docs-crate.rs
deny-missing-docs-crate.stderr
deny-missing-docs-macro.rs
deny-missing-docs-macro.stderr
deprecated-attrs.rs
deprecated-attrs.stderr
deref-generic.rs
diagnostic-width.rs
diagnostic-width.stderr
display-output.rs
display-output.stdout
doc_cfg_hide.rs
doc_cfg_hide.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-attr.rs
doc-attr.stderr
doc-cfg.rs
doc-cfg.stderr
doc-comment-multi-line-attr.rs
doc-comment-multi-line-attr.stdout
doc-comment-multi-line-cfg-attr.rs
doc-comment-multi-line-cfg-attr.stdout
doc-include-suggestion.rs
doc-include-suggestion.stderr
doc-spotlight.fixed
doc-spotlight.rs
doc-spotlight.stderr
doc-test-attr-pass.rs
doc-test-attr.rs
doc-test-attr.stderr
doc-test-doctest-feature.rs
doc-test-doctest-feature.stdout
doc-test-rustdoc-feature.rs
doc-test-rustdoc-feature.stdout
doc-without-codeblock.rs
doc-without-codeblock.stderr
doctest-edition.rs
doctest-edition.stderr
doctest-multiline-crate-attribute.rs
doctest-multiline-crate-attribute.stdout
doctest-output.rs
doctest-output.stdout
expect-tool-lint-rfc-2383.rs
expect-tool-lint-rfc-2383.stderr
failed-doctest-compile-fail.rs
failed-doctest-compile-fail.stdout
failed-doctest-extra-semicolon-on-item.rs
failed-doctest-extra-semicolon-on-item.stdout
failed-doctest-missing-codes.rs
failed-doctest-missing-codes.stdout
failed-doctest-output-windows.rs
failed-doctest-output-windows.stdout
failed-doctest-output.rs
failed-doctest-output.stdout
failed-doctest-should-panic.rs
failed-doctest-should-panic.stdout
feature-gate-doc_cfg_hide.rs
feature-gate-doc_cfg_hide.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
feature-gate-rustdoc_missing_doc_code_examples.rs Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
feature-gate-rustdoc_missing_doc_code_examples.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
generate-link-to-definition-opt2.rs
generate-link-to-definition-opt2.stderr
generate-link-to-definition-opt-unstable.rs
generate-link-to-definition-opt-unstable.stderr
generate-link-to-definition-opt.rs
generate-link-to-definition-opt.stderr
ignore-block-help.rs
ignore-block-help.stderr
impl-fn-nesting.rs
impl-fn-nesting.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
infinite-recursive-type-impl-trait-return.rs Update newly failing UI tests 2023-01-27 14:41:33 +01:00
infinite-recursive-type-impl-trait-return.stderr Update newly failing UI tests 2023-01-27 14:41:33 +01:00
infinite-recursive-type-impl-trait.rs Update newly failing UI tests 2023-01-27 14:41:33 +01:00
infinite-recursive-type-impl-trait.stderr Update newly failing UI tests 2023-01-27 14:41:33 +01:00
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-doc-attr.rs
invalid-doc-attr.stderr
invalid-html-self-closing-tag.rs
invalid-html-self-closing-tag.stderr
invalid-html-tags.rs
invalid-html-tags.stderr
invalid-keyword.rs
invalid-keyword.stderr
invalid-syntax.rs
invalid-syntax.stderr Emit a single error for contiguous sequences of Unicode homoglyphs 2023-01-12 00:15:32 +00:00
invalid-theme-name.rs
invalid-theme-name.stderr
issue-58473-2.rs
issue-58473.rs
issue-61592-2.rs
issue-61592-2.stderr
issue-61592.rs
issue-61592.stderr
issue-61732.rs
issue-61732.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
issue-74134.private.stderr
issue-74134.public.stderr
issue-74134.rs
issue-79465.rs rustdoc: update with --bless and change expected errors 2023-03-30 14:55:03 +02:00
issue-79465.stderr rustdoc: update with --bless and change expected errors 2023-03-30 14:55:03 +02:00
issue-79467.rs
issue-79467.stderr
issue-79494.rs
issue-79494.stderr
issue-80992.rs
issue-80992.stdout
issue-81662-shortness.rs
issue-81662-shortness.stdout
issue-83883-describe-lints.rs
issue-83883-describe-lints.stdout
issue-91134.rs
issue-91134.stdout
issue-91713.rs
issue-91713.stderr
issue-91713.stdout
issue-96287.rs rustdoc: update with --bless and change expected errors 2023-03-30 14:55:03 +02:00
issue-96287.stderr rustdoc: update with --bless and change expected errors 2023-03-30 14:55:03 +02:00
issue-98690.rs
issue-98690.stderr
issue-101076.rs
issue-102986.rs
issue-102986.stderr
issue-103997.rs
issue-103997.stderr
issue-105334.rs
issue-105334.stderr
issue-105737.rs
issue-105737.stderr
issue-105742.rs rustdoc: tidy excess whitespace 2023-03-30 15:46:34 +02:00
issue-105742.stderr rustdoc: add error messages to the test 2023-03-30 14:55:03 +02:00
issue-106213.rs
issue-106213.stderr
issue-106226.rs
issue-106226.stderr rustdoc: update with --bless and change expected errors 2023-03-30 14:55:03 +02:00
issue-107918.rs Don't run issue-107918.rs test on windows 2023-02-25 12:12:21 +01:00
issue-109282-import-inline-merge.rs Add regression test for #109282 2023-03-23 12:53:30 +01:00
lint-group.rs Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
lint-group.stderr Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
lint-missing-doc-code-example.rs
lint-missing-doc-code-example.stderr
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
no-crate-level-doc-lint.rs
no-crate-level-doc-lint.stderr
no-run-flag-error.rs
no-run-flag-error.stderr
no-run-flag.rs
no-run-flag.stdout
nocapture-fail.rs
nocapture-fail.stderr
nocapture-fail.stdout
nocapture.rs
nocapture.stderr
nocapture.stdout
normalize-cycle.rs
normalize-overflow.rs
output-format-html-stable.rs
private-doc-test.rs
private-item-doc-test.rs
private-item-doc-test.stderr
private-public-item-doc-test.rs
private-public-item-doc-test.stderr
proc_macro_bug.rs Test rustdoc encountering proc_macro_derive in a non-proc-macro crate 2023-02-23 09:00:33 +00:00
proc_macro_bug.stderr Test rustdoc encountering proc_macro_derive in a non-proc-macro crate 2023-02-23 09:00:33 +00:00
pub-export-lint.rs
pub-export-lint.stderr
public-reexported-item-doc-test.rs
range-pattern.rs
recursive-deref-ice.rs
reference-link-reports-error-once.rs
reference-link-reports-error-once.stderr
reference-links.rs
reference-links.stderr
renamed-lint-still-applies.rs
renamed-lint-still-applies.stderr
run-directory.correct.stdout
run-directory.incorrect.stdout
run-directory.rs
rustc-check-passes.rs
rustc-check-passes.stderr
rustdoc-all-only-stable-lints.rs Only include stable lints in rustdoc::all group 2023-02-19 22:05:58 -08:00
scrape-examples-fail-if-type-error.rs
scrape-examples-fail-if-type-error.stderr
scrape-examples-ice.rs
scrape-examples-wrong-options-1.rs
scrape-examples-wrong-options-1.stderr
scrape-examples-wrong-options-2.rs
scrape-examples-wrong-options-2.stderr
search-index-generics-recursion-bug-issue-59502.rs
test-compile-fail1.rs
test-compile-fail1.stderr
test-compile-fail2.rs
test-compile-fail2.stderr
test-compile-fail3.rs
test-compile-fail3.stderr
test-no_std.rs
test-no_std.stdout
test-type.rs
test-type.stdout
track-diagnostics.rs
track-diagnostics.stderr Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
tuple-variadic-check.rs
tuple-variadic-check.stderr
unable-fulfill-trait.rs
unable-fulfill-trait.stderr rustdoc: update UI test for dropping "this" article 2023-02-23 11:59:26 -07:00
unknown-renamed-lints.rs
unknown-renamed-lints.stderr Make configure_and_expand "infalllible" by just aborting the compilation if it fails instead of bubbling out an error 2023-02-20 15:28:59 +00:00
unparseable-doc-test.rs
unparseable-doc-test.stdout
unused-braces-lint.rs
unused-extern-crate.rs
unused.rs
use_both_out_dir_and_output_options.rs
use_both_out_dir_and_output_options.stderr
wasm-safe.rs
z-help.rs
z-help.stdout Add -Z time-passes-format to allow specifying a JSON output for -Z time-passes 2023-03-21 18:18:25 +01:00