From 521e41e77d0c9213ff3ed3f2a5e863b600ce2c3a Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Thu, 5 Apr 2018 00:35:09 +0100 Subject: Correct a few stability attributes --- src/libcore/panic.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libcore/panic.rs') diff --git a/src/libcore/panic.rs b/src/libcore/panic.rs index 4e72eaa57c7..1720c9d8c60 100644 --- a/src/libcore/panic.rs +++ b/src/libcore/panic.rs @@ -120,6 +120,7 @@ impl<'a> PanicInfo<'a> { } } +#[stable(feature = "panic_hook_display", since = "1.26.0")] impl<'a> fmt::Display for PanicInfo<'a> { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { formatter.write_str("panicked at ")?; @@ -244,6 +245,7 @@ impl<'a> Location<'a> { } } +#[stable(feature = "panic_hook_display", since = "1.26.0")] impl<'a> fmt::Display for Location<'a> { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { write!(formatter, "{}:{}:{}", self.file, self.line, self.col) -- cgit 1.4.1-3-g733a5