add inline attribute to new method · rust-lang/rust@19db85d (original) (raw)

Original file line number Diff line number Diff line change
@@ -1683,8 +1683,9 @@ impl ExitCode {
1683 1683 // representation of an ExitCode
1684 1684 //
1685 1685 // More info: https://internals.rust-lang.org/t/mini-pre-rfc-redesigning-process-exitstatus/5426
1686 -#[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
1687 1686 /// Convert an ExitCode into an i32
1687 + #[unstable(feature = "process_exitcode_placeholder", issue = "48711")]
1688 +#[inline]
1688 1689 pub fn to_i32(self) -> i32 {
1689 1690 self.0.as_i32()
1690 1691 }