Skip to content

Commit 4bcc4d7

Browse files
emberianalexcrichton
authored andcommitted
rustdoc: functions in ffi blocks are unsafe
Fixes #14188
1 parent ef788d5 commit 4bcc4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ impl Clean<Item> for ast::ForeignItem {
12041204
ForeignFunctionItem(Function {
12051205
decl: decl.clean(),
12061206
generics: generics.clean(),
1207-
fn_style: ast::NormalFn,
1207+
fn_style: ast::UnsafeFn,
12081208
})
12091209
}
12101210
ast::ForeignItemStatic(ref ty, mutbl) => {

0 commit comments

Comments
 (0)