]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Rollup merge of #80260 - RalfJung:less-untyped-panics, r=m-ou-se
authorYuki Okushi <huyuumi.dev@gmail.com>
Wed, 30 Dec 2020 13:49:17 +0000 (22:49 +0900)
committerGitHub <noreply@github.com>
Wed, 30 Dec 2020 13:49:17 +0000 (22:49 +0900)
commit00741b88101c4ec78c34bf2fa1cd275d1a35afc2
treeb1771f1b80c810f1f401210990af2c529e89bb8f
parent1caa5b00d5ec25db3888e0010663a0a053ef2e20
parent1600f7d693c5fba1b279f8d96ec714c897e21799
Rollup merge of #80260 - RalfJung:less-untyped-panics, r=m-ou-se

slightly more typed interface to panic implementation

The panic payload is currently being passed around as a `usize`. However, it actually is a pointer, and the involved types are available on all ends of this API, so I propose we use the proper pointer type to avoid some casts. Avoiding int-to-ptr casts also makes this code work with `miri -Zmiri-track-raw-pointers`.