We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363db14 commit 40a38b0Copy full SHA for 40a38b0
src/doc/unstable-book/src/language-features/used.md
@@ -87,7 +87,7 @@ This condition can be met using `#[used]` and `#[link_section]` plus a linker
87
script.
88
89
``` rust,ignore
90
-#![feature(panic_implementation)]
+#![feature(panic_handler)]
91
#![feature(used)]
92
#![no_main]
93
#![no_std]
@@ -102,8 +102,8 @@ extern "C" fn reset_handler() -> ! {
102
#[used]
103
static RESET_HANDLER: extern "C" fn() -> ! = reset_handler;
104
105
-#[panic_implementation]
106
-fn panic_impl(info: &PanicInfo) -> ! {
+#[panic_handler]
+fn panic(info: &PanicInfo) -> ! {
107
loop {}
108
}
109
```
0 commit comments