File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 30
30
>   ;  ; ( _ NamedFunctionParam_ ` , ` )<sup >\* </sup > _ NamedFunctionParam_ ` , ` ` ... `
31
31
32
32
External blocks provide _ declarations_ of items that are not _ defined_ in the
33
- current crate and are the basis of Rust's foreign function interface. Using
34
- items declared in external blocks is only allowed in an ` unsafe ` context.
33
+ current crate and are the basis of Rust's foreign function interface. These are
34
+ sort of like unchecked imports.
35
35
36
- Two kind of item _ declarations_ are allowed in external blocks:
37
- [ functions] and [ statics] .
36
+ Two kind of item _ declarations_ are allowed in external blocks: [ functions] and
37
+ [ statics] . Calling functions or accessing statics that are declared in external
38
+ blocks is only allowed in an ` unsafe ` context.
38
39
39
40
Functions within external blocks are declared in the same way as other Rust
40
41
functions, with the exception that they may not have a body and are instead
You can’t perform that action at this time.
0 commit comments