mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
add inline(always) to option
This commit is contained in:
parent
940e0b3765
commit
5470a38921
@ -102,6 +102,7 @@ macro_rules! compat_fn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
#[inline(always)]
|
||||||
pub fn option() -> Option<F> {
|
pub fn option() -> Option<F> {
|
||||||
unsafe {
|
unsafe {
|
||||||
if cfg!(miri) {
|
if cfg!(miri) {
|
||||||
|
Loading…
Reference in New Issue
Block a user