Skip to content

Commit da69118

Browse files
committed
Tune the inlinability of Result::unwrap
1 parent 76783b0 commit da69118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ impl<T, E> Result<T, E> {
10611061
/// let x: Result<u32, &str> = Err("emergency failure");
10621062
/// x.unwrap(); // panics with `emergency failure`
10631063
/// ```
1064-
#[inline]
1064+
#[inline(always)]
10651065
#[track_caller]
10661066
#[stable(feature = "rust1", since = "1.0.0")]
10671067
pub fn unwrap(self) -> T

0 commit comments

Comments
 (0)