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 3030>   ;  ; ( _ NamedFunctionParam_ ` , ` )<sup >\* </sup > _ NamedFunctionParam_ ` , ` ` ... `
3131
3232External 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.
3535
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.
3839
3940Functions within external blocks are declared in the same way as other Rust
4041functions, 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