rust/library
bors 18135ec85b Auto merge of #85745 - veber-alex:panic_any, r=m-ou-se
Add #[track_caller] to panic_any

Report the panic location from the user code.

```rust
use std::panic;
use std::panic::panic_any;

fn main() {
    panic::set_hook(Box::new(|panic_info| {
        if let Some(location) = panic_info.location() {
            println!(
                "panic occurred in file '{}' at line {}",
                location.file(),
                location.line(),
            );
        } else {
            println!("panic occurred but can't get location information...");
        }
    }));

    panic_any(42);
}
````

Before:
`panic occurred in file '/rustc/ff2c947c00f867b9f012e28ba88cecfbe556f904/library/std/src/panic.rs' at line 59`

After:
`panic occurred in file 'src/main.rs' at line 17`
2021-05-28 06:08:58 +00:00
..
alloc Auto merge of #85737 - scottmcm:vec-calloc-option-nonzero, r=m-ou-se 2021-05-27 13:05:57 +00:00
backtrace@221483ebaf Update backtrace to 0.3.57 2021-04-25 13:48:03 -07:00
core Rollup merge of #85730 - Smittyvb:iter-min-max-floats, r=m-ou-se 2021-05-27 20:08:21 +02:00
panic_abort
panic_unwind Change 'NULL' to 'null' 2021-05-02 17:46:00 -06:00
proc_macro remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
profiler_builtins Update cc 2021-05-24 23:34:12 +01:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #85745 - veber-alex:panic_any, r=m-ou-se 2021-05-28 06:08:58 +00:00
stdarch@37d6e18863 Update stdarch to fix x86 byte shift intrinsics 2021-05-20 01:51:05 +01:00
term
test Auto merge of #84568 - andoriyu:libtest/junit_formatter, r=yaahc 2021-05-27 21:14:55 +00:00
unwind Auto merge of #84124 - 12101111:libunwind, r=petrochenkov 2021-05-27 04:08:20 +00:00