about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-12-29 23:16:40 -0500
committerJoshua Nelson <jyn514@gmail.com>2020-12-29 23:18:11 -0500
commit56ea926b1cae1869420e0bba1a67b4cbf6d0d653 (patch)
tree507230581aa22194578b49e7b30f0746c8a70237 /library/std/src/sys/unix/stack_overflow.rs
parentdc6121ca681e3aef09b93afb13637632dcdc0e9a (diff)
downloadrust-56ea926b1cae1869420e0bba1a67b4cbf6d0d653.tar.gz
rust-56ea926b1cae1869420e0bba1a67b4cbf6d0d653.zip
Add `#[track_caller]` to `bug!` and `register_renamed`
Before:

```
thread 'rustc' panicked at 'compiler/rustc_lint/src/context.rs:267:18: invalid lint renaming of broken_intra_doc_links to rustdoc::broken_intra_doc_links', compiler/rustc_middle/src/util/bug.rs:34:26
```

After:

```
thread 'rustc' panicked at 'src/librustdoc/core.rs:455:24: invalid lint renaming of broken_intra_doc_links to rustdoc::broken_intra_doc_links', compiler/rustc_middle/src/util/bug.rs:35:26
```

The reason I added it to `register_renamed` too is that any panic in
that function will be the caller's fault.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions