From 6ddcf5044b64a03fc8fc422cdfa9946abd42c8f0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 26 Nov 2019 09:24:17 +0100 Subject: Fix unstable attribute accidentally applying to the entire impl Note `#![unstable]` v.s. `#[unstable]` --- src/libcore/panic.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/panic.rs b/src/libcore/panic.rs index cdd38449a1b..b61877ab070 100644 --- a/src/libcore/panic.rs +++ b/src/libcore/panic.rs @@ -39,10 +39,10 @@ pub struct PanicInfo<'a> { } impl<'a> PanicInfo<'a> { - #![unstable(feature = "panic_internals", - reason = "internal details of the implementation of the `panic!` \ - and related macros", - issue = "0")] + #[unstable(feature = "panic_internals", + reason = "internal details of the implementation of the `panic!` \ + and related macros", + issue = "0")] #[doc(hidden)] #[inline] pub fn internal_constructor( @@ -57,6 +57,10 @@ impl<'a> PanicInfo<'a> { } } + #[unstable(feature = "panic_internals", + reason = "internal details of the implementation of the `panic!` \ + and related macros", + issue = "0")] #[doc(hidden)] #[inline] pub fn set_payload(&mut self, info: &'a (dyn Any + Send)) { -- cgit 1.4.1-3-g733a5