]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #105262 - eduardosm:more-inline-always, r=thomcc
authorbors <bors@rust-lang.org>
Fri, 9 Dec 2022 15:42:18 +0000 (15:42 +0000)
committerbors <bors@rust-lang.org>
Fri, 9 Dec 2022 15:42:18 +0000 (15:42 +0000)
Make some trivial functions `#[inline(always)]`

This is some kind of follow-up of PRs like https://github.com/rust-lang/rust/pull/85218, https://github.com/rust-lang/rust/pull/84061, https://github.com/rust-lang/rust/pull/87150. Functions that do very basic operations are made `#[inline(always)]` to avoid pessimizing them in debug builds when compared to using built-in operations directly.

1  2 
library/core/src/ptr/mod.rs
library/core/src/slice/mod.rs

Simple merge
Simple merge