We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a781f9e commit 39bfad7Copy full SHA for 39bfad7
example/alloc_example.rs
@@ -18,7 +18,7 @@ extern "C" {
18
}
19
20
#[panic_handler]
21
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
22
core::intrinsics::abort();
23
24
example/mod_bench.rs
@@ -3,15 +3,15 @@
3
4
#[cfg_attr(unix, link(name = "c"))]
5
#[cfg_attr(target_env = "msvc", link(name = "msvcrt"))]
6
-extern {}
+extern "C" {}
7
8
9
10
11
12
13
-#[lang="eh_personality"]
14
-fn eh_personality(){}
+#[lang = "eh_personality"]
+fn eh_personality() {}
15
16
// Required for rustc_codegen_llvm
17
#[no_mangle]
0 commit comments