]> git.lizzy.rs Git - rust.git/commit
Mark Location::caller() as #[inline]
authorbjorn3 <bjorn3@users.noreply.github.com>
Sun, 3 Apr 2022 18:27:54 +0000 (20:27 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sun, 3 Apr 2022 18:32:39 +0000 (20:32 +0200)
commit6d0b61e2f598c1d1102ea9b6f22c4d0e71e5f967
treed2cef236b592bc45b6b94919907ab2c714700bf4
parent15a242a432c9c40a60def102209a5d40900b7b9d
Mark Location::caller() as #[inline]

This function gets compiled to a single register move as it actually
gets it's return value passed in as argument.
library/core/src/panic/location.rs