]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se
authorbors <bors@rust-lang.org>
Sat, 13 Feb 2021 20:30:07 +0000 (20:30 +0000)
committerbors <bors@rust-lang.org>
Sat, 13 Feb 2021 20:30:07 +0000 (20:30 +0000)
commit8e54a21139ae96a2aca3129100b057662e2799b9
tree7b2455feb283e4e0fba25de51555a693420d4111
parent3c10a880eca60379343a6c6d19dd5bda38ead55d
parent1a806352e41fcba5eac91784476fc6dfa6ee05b7
Auto merge of #81238 - RalfJung:copy-intrinsics, r=m-ou-se

directly expose copy and copy_nonoverlapping intrinsics

This effectively un-does https://github.com/rust-lang/rust/pull/57997. That should help with `ptr::read` codegen in debug builds (and any other of these low-level functions that bottoms out at `copy`/`copy_nonoverlapping`), where the wrapper function will not get inlined. See the discussion in https://github.com/rust-lang/rust/pull/80290 and https://github.com/rust-lang/rust/issues/81163.

Cc `@bjorn3` `@therealprof`
library/core/src/intrinsics.rs
library/core/src/ptr/mod.rs
src/test/ui/const-ptr/out_of_bounds_read.stderr
src/tools/clippy/clippy_lints/src/utils/paths.rs