diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-26 09:24:17 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-26 09:24:17 +0100 |
| commit | 6ddcf5044b64a03fc8fc422cdfa9946abd42c8f0 (patch) | |
| tree | 70efb5a7303bec6c11db337e2f6e4c21126f2eb6 /src/libcore/panic.rs | |
| parent | 2626f3d3d5c3007745176aa0fe22781b9ec2bb06 (diff) | |
| download | rust-6ddcf5044b64a03fc8fc422cdfa9946abd42c8f0.tar.gz rust-6ddcf5044b64a03fc8fc422cdfa9946abd42c8f0.zip | |
Fix unstable attribute accidentally applying to the entire impl
Note `#![unstable]` v.s. `#[unstable]`
Diffstat (limited to 'src/libcore/panic.rs')
| -rw-r--r-- | src/libcore/panic.rs | 12 |
1 files changed, 8 insertions, 4 deletions
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)) { |
