Skip to content

Commit 3c50306

Browse files
folkertdevehuss
authored andcommitted
Don't mark c-variadic foreign function as safe
Calling a c-variadic function is never safe: passing an unexpected number of arguments, or arguments of an unexpected type, is UB.
1 parent 8e0f593 commit 3c50306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/external-blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ identifier.
176176

177177
```rust
178178
unsafe extern "C" {
179-
safe fn foo(...);
179+
unsafe fn foo(...);
180180
unsafe fn bar(x: i32, ...);
181181
unsafe fn with_name(format: *const u8, args: ...);
182182
}

0 commit comments

Comments
 (0)