![]() Delegation: allow foreign fns `reuse` In example: ```rust unsafe extern "C" { fn foo(); } reuse foo as bar; ``` Desugaring before: ```rust fn bar() { foo() //~^ ERROR call to unsafe function `foo` is unsafe and requires unsafe function or block } ``` after: ```rust unsafe extern "C" fn bar() { foo() } ``` Fixes https://github.com/rust-lang/rust/issues/127412 r? `@petrochenkov` |
||
---|---|---|
.. | ||
asm.rs | ||
block.rs | ||
delegation.rs | ||
errors.rs | ||
expr.rs | ||
format.rs | ||
index.rs | ||
item.rs | ||
lib.rs | ||
pat.rs | ||
path.rs | ||
stability.rs |