diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-06 18:43:56 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-06 21:03:59 -0700 |
| commit | 08237cad8d2ce9287aedf99e57384407cc9dc42d (patch) | |
| tree | aca7e5b64833b1216f0a747308533657255e1c1e /src/rustllvm/RustWrapper.cpp | |
| parent | cf6857b9e9427f14d383ae2924555bedc251fa02 (diff) | |
| download | rust-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
