Skip to content

Commit 00eef83

Browse files
authored
Add unsafe to a link_section attribute. (#165)
This fixes compatibility with current Rust compilers.
1 parent d0c8ff8 commit 00eef83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// c-scape initializes its environment-variable state at
44
/// `.init_array.00098`, so using `.00099` means we run after that, so
55
/// initializing loggers that depend on eg. `RUST_LOG` work.
6-
#[link_section = ".init_array.00099"]
6+
#[unsafe(link_section = ".init_array.00099")]
77
#[used]
88
static INIT_ARRAY: unsafe extern "C" fn() = {
99
unsafe extern "C" fn function() {

0 commit comments

Comments
 (0)