scripts: rust: emit path candidates in panic message
authorTamir Duberstein <tamird@gmail.com>
Thu, 29 May 2025 13:14:59 +0000 (09:14 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 20 Jul 2025 22:18:43 +0000 (00:18 +0200)
commit2254991d5b573662f841998c1d263118a15f067a
tree214221a980b2e24fc02011d68f292bbec452ce2b
parent8b097b5ac68b0fd2a7a251e101a84175b2ed585d
scripts: rust: emit path candidates in panic message

Include all information in the panic message rather than emit fragments
to stderr to avoid possible interleaving with other output.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250529-idiomatic-match-slice-v2-2-4925ca2f1550@gmail.com
[ Kept newlines using `writeln!`. Used new message from Tamir. Reworded
  title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/rustdoc_test_gen.rs