diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-04-05 11:07:19 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-04-05 11:07:19 -0700 |
| commit | 323f8087910b0d63815003970bb8a45e3ccfdb17 (patch) | |
| tree | c59f2c54aa9f44a23cc9e3dd4016d74e02bb4043 /src/libstd/sys/windows | |
| parent | 56714acc5eb0687ed9a7566fdebe5528657fc5b3 (diff) | |
| download | rust-323f8087910b0d63815003970bb8a45e3ccfdb17.tar.gz rust-323f8087910b0d63815003970bb8a45e3ccfdb17.zip | |
std: Inline some Termination-related methods
These were showing up in tests and in binaries but are trivially optimize-able away, so add `#[inline]` attributes so LLVM has an opportunity to optimize them out.
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index afa8e3e1369..bd5507e8f89 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -414,6 +414,7 @@ impl ExitCode { pub const SUCCESS: ExitCode = ExitCode(EXIT_SUCCESS as _); pub const FAILURE: ExitCode = ExitCode(EXIT_FAILURE as _); + #[inline] pub fn as_i32(&self) -> i32 { self.0 as i32 } |
