core::panic::PanicInfo
's location
method show incorrect usage with std::panic::set_hook
, even though that functionality has been split
#128788
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Location
https://doc.rust-lang.org/beta/core/panic/struct.PanicInfo.html#method.location
rust/library/core/src/panic/panic_info.rs
Lines 65 to 95 in 9bad7ba
Summary
since #115974 the
PanicInfo
andPanicHookInfo
structs have been split up, but the docs forPanicInfo
still show how to use it with a panic hook, even though it is now exclusively for the#[panic_handler]
and the panic hook functionality has been moved intoPanicHookInfo
The text was updated successfully, but these errors were encountered: