Note possiblities of empty extern blocks (based on #12575)
This commit is contained in:
parent
e6c058e18c
commit
e5c1884c26
1 changed files with 4 additions and 0 deletions
|
|
@ -1636,6 +1636,10 @@ The type of a function declared in an extern block is `extern "abi" fn(A1, ...,
|
|||
An) -> R`, where `A1...An` are the declared types of its arguments and `R` is
|
||||
the declared return type.
|
||||
|
||||
It is valid to add the `link` attribute on an empty extern block. You can use
|
||||
this to satisfy the linking requirements of extern blocks elsewhere in your code
|
||||
(including upstream crates) instead of adding the attribute to each extern block.
|
||||
|
||||
## Visibility and Privacy
|
||||
|
||||
These two terms are often used interchangeably, and what they are attempting to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue