rust/tests/rustdoc-ui
Trevor Gross 289fe36d37 Print thread ID in panic message if thread name is unknown
`panic!` does not print any identifying information for threads that are
unnamed. However, in many cases, the thread ID can be determined.

This changes the panic message from something like this:

    thread '<unnamed>' panicked at src/main.rs:3:5:
    explicit panic

To something like this:

    thread '<unnamed>' (0xff9bf) panicked at src/main.rs:3:5:
    explicit panic

Stack overflow messages are updated as well.

This change applies to both named and unnamed threads. The ID printed is
the OS integer thread ID rather than the Rust thread ID, which should
also be what debuggers print.
2025-08-06 23:59:47 +00:00
..
argfile
auxiliary
coverage
doctest Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
error-in-impl-trait
generate-link-to-definition
intra-doc move bad-intra-doc test into intra-doc dir 2025-07-24 11:17:14 -05:00
issues Rework #[doc(cfg(..))] checks as distinct pass in rustdoc 2025-05-29 21:50:14 +02:00
lints adjust more unit tests to reflect more aggressive intra-doc linting 2025-07-24 11:17:13 -05:00
scrape-examples
suggestions
synthetic-auto-trait-impls
2024-doctests-checks.rs Update rustdoc ui tests 2025-07-24 11:06:28 +02:00
2024-doctests-checks.stdout Update rustdoc ui tests 2025-07-24 11:06:28 +02:00
2024-doctests-crate-attribute.rs Update rustdoc ui tests 2025-07-24 11:06:28 +02:00
2024-doctests-crate-attribute.stdout Update rustdoc ui tests 2025-07-24 11:06:28 +02:00
ambiguous-inherent-assoc-ty.rs
apit-46976.rs
associated-constant-not-allowed-102467.rs
associated-constant-not-allowed-102467.stderr
bounded-hr-lifetime.rs
bounded-hr-lifetime.stderr
cfg-boolean-literal.rs
check-cfg.rs
check-cfg.stderr
check-doc-alias-attr-location.rs
check-doc-alias-attr-location.stderr Specify of_trait in Target::Impl. 2025-07-17 22:21:21 +00:00
check-doc-alias-attr.rs
check-doc-alias-attr.stderr
circular-intra-doc-link-48414.rs
const-evalutation-ice.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
const-evalutation-ice.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
const_arg_in_type_position.rs
const_arg_in_type_position.stderr
crate-reference-in-block-module.rs
custom_code_classes_in_docs-warning3.rs rustdoc: {Meta,Pointee,}Sized in non-minicore 2025-06-16 23:04:36 +00:00
custom_code_classes_in_docs-warning3.stderr rustdoc: {Meta,Pointee,}Sized in non-minicore 2025-06-16 23:04:36 +00:00
deprecated-attrs.rs
deprecated-attrs.stderr
deref-generic.rs
diagnostic-width.rs
diagnostic-width.stderr
disambiguator-endswith-named-suffix.rs adjust more unit tests to reflect more aggressive intra-doc linting 2025-07-24 11:17:13 -05:00
disambiguator-endswith-named-suffix.stderr adjust more unit tests to reflect more aggressive intra-doc linting 2025-07-24 11:17:13 -05:00
disambiguator-macro-endswith-exclamatory.rs
disambiguator-macro-endswith-exclamatory.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-check-cfg.cfg_empty.stderr Rework #[doc(cfg(..))] checks as distinct pass in rustdoc 2025-05-29 21:50:14 +02:00
doc-cfg-check-cfg.rs Rework #[doc(cfg(..))] checks as distinct pass in rustdoc 2025-05-29 21:50:14 +02:00
doc-cfg-unstable.rs
doc-cfg-unstable.stderr
doc-cfg.rs rustdoc: use custom CfgMatchesLintEmitter to make check-cfg work 2025-05-26 21:52:21 +02:00
doc-cfg.stderr Rework #[doc(cfg(..))] checks as distinct pass in rustdoc 2025-05-29 21:50:14 +02:00
doc-include-suggestion.rs
doc-include-suggestion.stderr
doctest-output.rs
doctest-output.stderr
extract-doctests-result.rs Add new extracted option doctest ui test for result returning doctest 2025-06-10 13:54:47 +02:00
extract-doctests-result.stdout Add new extracted option doctest ui test for result returning doctest 2025-06-10 13:54:47 +02:00
extract-doctests.rs
extract-doctests.stdout Give more information into extracted doctest information 2025-06-10 13:54:46 +02:00
feature-gate-doc_cfg_hide.rs
feature-gate-doc_cfg_hide.stderr
hashtag-doctest.rs
hidden-trait-method-34423.rs
ice-assoc-const-for-primitive-31808.rs
ice-assoc-type-loop-102154.rs
ice-blanket-impl-52873.rs
ice-blanket-impl-56701.rs
ice-blanket-impl-119792.rs
ice-blanket-impl-selection-55001.rs
ice-bug-report-url.rs
ice-bug-report-url.stderr
ice-cross-crate-opaque-assoc-type-73061.rs
ice-method-where-clause-circular-100620.rs
ice-unresolved-import-100241.rs
ice-unresolved-import-100241.stderr
ignore-block-help.rs
ignore-block-help.stderr
impl-fn-nesting.rs
impl-fn-nesting.stderr
include-str-bare-urls.rs
include-str-bare-urls.stderr
infinite-recursive-type.rs
infinite-recursive-type.stderr
inherent-assoc-consts-36031.rs
invalid-cfg.rs
invalid-cfg.stderr
invalid-keyword.rs
invalid-keyword.stderr
invalid-redundant-explicit-link.rs
invalid-syntax.rs
invalid-syntax.stderr
invalid-theme-name.rs
invalid-theme-name.stderr
invalid_associated_const.rs
invalid_associated_const.stderr
invalid_const_in_lifetime_position.rs
invalid_const_in_lifetime_position.stderr
invalid_infered_static_and_const.rs
invalid_infered_static_and_const.stderr Replace ItemCtxt::report_placeholder_type_error match with a call to TyCtxt::def_descr 2025-06-30 20:36:16 +02:00
macro-docs.rs
macro-docs.stderr
mismatched_arg_count.rs
mismatched_arg_count.stderr
multi-par-footnote.rs
multi-par-footnote.stdout
nested-extern-crate-46271.rs
nested-macro-rules-47639.rs
normalize-cycle.rs
normalize-in-inlined-type-alias.rs
normalize-overflow.rs
not-wf-ambiguous-normalization.rs
not-wf-ambiguous-normalization.stderr
output-format-html-stable.rs
private-type-cycle-110629.rs
private-type-cycle-dyn-110629.rs
private-type-cycle-dyn-110629.stderr
proc_macro_bug.rs
proc_macro_bug.stderr
projection-as-union-type-error.rs
projection-as-union-type-error.stderr
pub-use-primitive-document-private-items-95633.rs
range-pattern.rs
recursive-deref-ice.rs
recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
redundant-explicit-links-123677.rs
remap-path-prefix-failed-doctest-output.rs
remap-path-prefix-failed-doctest-output.stdout Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
remap-path-prefix-invalid-doctest.rs
remap-path-prefix-invalid-doctest.stdout
remap-path-prefix-lint.rs
remap-path-prefix-lint.stderr
remap-path-prefix-macro.rs
remap-path-prefix-passed-doctest-output.rs
remap-path-prefix-passed-doctest-output.stdout
rustc-check-passes.rs
rustc-check-passes.stderr
search-index-generics-recursion-bug-issue-59502.rs
show-coverage-json.rs
show-coverage-json.stdout
show-coverage.rs
show-coverage.stdout
super-glob-40936.rs
target-feature-stability.rs rustdoc: {Meta,Pointee,}Sized in non-minicore 2025-06-16 23:04:36 +00:00
track-diagnostics.rs refactor: Make -Ztrack-diagnostics emit like a note 2025-07-03 07:19:25 -06:00
track-diagnostics.stderr refactor: Make -Ztrack-diagnostics emit like a note 2025-07-03 07:19:25 -06:00
tuple-variadic-check.rs
tuple-variadic-check.stderr
unable-fulfill-trait.rs
unable-fulfill-trait.stderr
unescaped_backticks.rs
unescaped_backticks.stderr
use_both_out_dir_and_output_options.rs
use_both_out_dir_and_output_options.stderr
wasm-safe.rs