Extern blocks are allowed for #[track_caller] now. (#710)

since https://github.com/rust-lang/rust/pull/70916
This commit is contained in:
Adam Perry 2020-05-23 13:40:23 -07:00 committed by GitHub
parent c0d248e5ec
commit 93efcba5a2

View file

@ -160,7 +160,6 @@ The `#[track_caller]` attribute is checked alongside other codegen attributes to
function:
* has the `"Rust"` ABI (as opposed to e.g., `"C"`)
* is not a foreign import (e.g., in an `extern {...}` block)
* is not a closure
* is not `#[naked]`