about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-06 18:43:56 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-06 21:03:59 -0700
commit08237cad8d2ce9287aedf99e57384407cc9dc42d (patch)
treeaca7e5b64833b1216f0a747308533657255e1c1e /src/rustllvm/RustWrapper.cpp
parentcf6857b9e9427f14d383ae2924555bedc251fa02 (diff)
downloadrust-08237cad8d2ce9287aedf99e57384407cc9dc42d.tar.gz
rust-08237cad8d2ce9287aedf99e57384407cc9dc42d.zip
rustc: Enable writing "unsafe extern fn() {}"
Previously, the parser would not allow you to simultaneously implement a
function with a different abi as well as being unsafe at the same time. This
extends the parser to allow functions of the form:

    unsafe extern fn foo() {
        // ...
    }

The closure type grammar was also changed to reflect this reversal, types
previously written as "extern unsafe fn()" must now be written as
"unsafe extern fn()". The parser currently has a hack which allows the old
style, but this will go away once a snapshot has landed.

Closes #10025

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions