]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #86664 - m-ou-se:uninit-track-caller, r=JohnTitor
authorbors <bors@rust-lang.org>
Thu, 29 Jul 2021 09:35:23 +0000 (09:35 +0000)
committerbors <bors@rust-lang.org>
Thu, 29 Jul 2021 09:35:23 +0000 (09:35 +0000)
commit5fb3394cbdf0622c9d0c292feb55db0f4c828dc3
treee1521a5f4ca5e5e8b6e971c7635c10e979974911
parent6e0a8bf7901a3fe2e073b1e702e80f58b76d5087
parent3f6dc9a8abe9ffd804fed2ddaabb1c67de4c8fbd
Auto merge of #86664 - m-ou-se:uninit-track-caller, r=JohnTitor

Add #[track_caller] for some function in core::mem.

These functions can panic for some types. This makes the panic point to the code that calls e.g. mem::uninitialized(), instead of inside the definition of mem::uninitialized.