Note possiblities of empty extern blocks (based on #12575)

This commit is contained in:
Aidan Hobson Sayers 2015-05-21 16:47:41 +01:00
parent e6c058e18c
commit e5c1884c26

View file

@ -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