X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibcore%2Fpanic.rs;h=1abc0a18a9cc94aaeaa3e77bdd91ad9a559ae0d0;hb=0b1669d96cee9dec9035a50fdf0a967a68605f98;hp=17cac5aa0a05fd1e5a4eed9ca078f29c9a6533dd;hpb=dafe33524a8646d02b2e35ad616ac1bdbf88da16;p=rust.git diff --git a/src/libcore/panic.rs b/src/libcore/panic.rs index 17cac5aa0a0..1abc0a18a9c 100644 --- a/src/libcore/panic.rs +++ b/src/libcore/panic.rs @@ -1,13 +1,3 @@ -// Copyright 2018 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - //! Panic support in the standard library. #![unstable(feature = "core_panic_info", @@ -133,7 +123,7 @@ pub fn location(&self) -> Option<&Location> { } #[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 +248,7 @@ pub fn column(&self) -> u32 { } #[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) }