diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-10-02 22:54:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-02 22:54:33 +0200 |
| commit | 7e571eead8e4356dcb9b4f4aa92ffcdc29336803 (patch) | |
| tree | 49c4d78de9ae26b8957c5be8f15668b4fafbf3e7 /src/libcore/panic.rs | |
| parent | 32c1454a87e22431e79d189eaac6b89747460b50 (diff) | |
| parent | d4840da77993d052bae2a900163026602ac89d3c (diff) | |
Rollup merge of #54687 - scottmcm:more-elision, r=dtolnay
Use impl_header_lifetime_elision in libcore The feature is approved for stabilization, so let's use it to remove about 300 `'a`s. Tracking issue for the feature: https://github.com/rust-lang/rust/issues/15872
Diffstat (limited to 'src/libcore/panic.rs')
| -rw-r--r-- | src/libcore/panic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/panic.rs b/src/libcore/panic.rs index 17cac5aa0a0..f0efeb59e8d 100644 --- a/src/libcore/panic.rs +++ b/src/libcore/panic.rs @@ -133,7 +133,7 @@ impl<'a> PanicInfo<'a> { } #[stable(feature = "panic_hook_display", since = "1.26.0")] -impl<'a> fmt::Display for PanicInfo<'a> { +impl fmt::Display for PanicInfo<'_> { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { formatter.write_str("panicked at ")?; if let Some(message) = self.message { @@ -258,7 +258,7 @@ impl<'a> Location<'a> { } #[stable(feature = "panic_hook_display", since = "1.26.0")] -impl<'a> fmt::Display for Location<'a> { +impl fmt::Display for Location<'_> { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { write!(formatter, "{}:{}:{}", self.file, self.line, self.col) } |
