Skip to content

Commit 6ddcf50

Browse files
committed
Fix unstable attribute accidentally applying to the entire impl
Note `#![unstable]` v.s. `#[unstable]`
1 parent 2626f3d commit 6ddcf50

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/libcore/panic.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ pub struct PanicInfo<'a> {
3939
}
4040

4141
impl<'a> PanicInfo<'a> {
42-
#![unstable(feature = "panic_internals",
43-
reason = "internal details of the implementation of the `panic!` \
44-
and related macros",
45-
issue = "0")]
42+
#[unstable(feature = "panic_internals",
43+
reason = "internal details of the implementation of the `panic!` \
44+
and related macros",
45+
issue = "0")]
4646
#[doc(hidden)]
4747
#[inline]
4848
pub fn internal_constructor(
@@ -57,6 +57,10 @@ impl<'a> PanicInfo<'a> {
5757
}
5858
}
5959

60+
#[unstable(feature = "panic_internals",
61+
reason = "internal details of the implementation of the `panic!` \
62+
and related macros",
63+
issue = "0")]
6064
#[doc(hidden)]
6165
#[inline]
6266
pub fn set_payload(&mut self, info: &'a (dyn Any + Send)) {

0 commit comments

Comments
 (0)