Fix unstable attribute accidentally applying to the entire impl

Note `#![unstable]` v.s. `#[unstable]`
This commit is contained in:
Simon Sapin 2019-11-26 09:24:17 +01:00
parent 2626f3d3d5
commit 6ddcf5044b

View File

@ -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)) {