Skip to content

Commit 17c454c

Browse files
authored
Unrolled build for rust-lang#121311
Rollup merge of rust-lang#121311 - Nilstrieb:is-it-overlapping, r=saethlin Make `is_nonoverlapping` `#[inline]` It showed up with 3% execution time in a compiler profile. backlink to rust-lang#120848 r? ``@saethlin``
2 parents bcea3cb + 0b59748 commit 17c454c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,7 @@ pub(crate) fn is_valid_allocation_size(size: usize, len: usize) -> bool {
26932693

26942694
/// Checks whether the regions of memory starting at `src` and `dst` of size
26952695
/// `count * size` do *not* overlap.
2696+
#[inline]
26962697
pub(crate) fn is_nonoverlapping(src: *const (), dst: *const (), size: usize, count: usize) -> bool {
26972698
let src_usize = src.addr();
26982699
let dst_usize = dst.addr();

0 commit comments

Comments
 (0)