about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-19 22:43:00 +0000
committerbors <bors@rust-lang.org>2022-05-19 22:43:00 +0000
commita09d36deae2e25f2eb4a0ee5d95519042ebd66a2 (patch)
tree0b8d32d306bf518a31f92226418a1f786343ac6d /library/std/src
parentc0672870491e84362f76ddecd50fa229f9b06dff (diff)
parent1fb9be0cee828d29cfe38fa61c6b3f1c21424f1c (diff)
downloadrust-a09d36deae2e25f2eb4a0ee5d95519042ebd66a2.tar.gz
rust-a09d36deae2e25f2eb4a0ee5d95519042ebd66a2.zip
Auto merge of #97180 - Dylan-DPC:rollup-aa5j2yw, r=Dylan-DPC
Rollup of 6 pull requests

Successful merges:

 - #96539 (Add release notes for 1.61.0)
 - #97142 (move processing of `source_scope_data` into `MutVisitor`'s impl of `Integrator` when inline)
 - #97155 (Fix doc typo)
 - #97169 (Improve `u32 as char` cast diagnostic)
 - #97170 (Remove unnecessay .report() on ExitCode)
 - #97171 (Add regression test for #88119)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/process.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs
index e253f46406f..28e802d07e1 100644
--- a/library/std/src/process.rs
+++ b/library/std/src/process.rs
@@ -2136,7 +2136,7 @@ pub trait Termination {
 impl Termination for () {
     #[inline]
     fn report(self) -> ExitCode {
-        ExitCode::SUCCESS.report()
+        ExitCode::SUCCESS
     }
 }
 
@@ -2162,7 +2162,7 @@ impl<E: fmt::Debug> Termination for Result<!, E> {
     fn report(self) -> ExitCode {
         let Err(err) = self;
         eprintln!("Error: {err:?}");
-        ExitCode::FAILURE.report()
+        ExitCode::FAILURE
     }
 }