Skip to content
Permalink
Browse files

Fix unstable attribute accidentally applying to the entire impl

Note `#![unstable]` v.s. `#[unstable]`
  • Loading branch information
SimonSapin committed Nov 26, 2019
1 parent 2626f3d commit 6ddcf5044b64a03fc8fc422cdfa9946abd42c8f0
Showing with 8 additions and 4 deletions.
  1. +8 −4 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)) {

0 comments on commit 6ddcf50

Please sign in to comment.
You can’t perform that action at this time.