about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-11-30 21:33:04 +1300
committerP1start <rewi-github@whanau.org>2014-11-30 21:33:04 +1300
commit63553a10adc8b507edee1fce43f868d93628ce34 (patch)
treeb5161799251d404d1d79786c7e2dfdc2da794ede /src/rustllvm/RustWrapper.cpp
parent8d8f41b75f9bec7c7676122f85e049e7d7933298 (diff)
downloadrust-63553a10adc8b507edee1fce43f868d93628ce34.tar.gz
rust-63553a10adc8b507edee1fce43f868d93628ce34.zip
Fix the ordering of `unsafe` and `extern` in methods
This breaks code that looks like this:

    trait Foo {
        extern "C" unsafe fn foo();
    }

    impl Foo for Bar {
        extern "C" unsafe fn foo() { ... }
    }

Change such code to look like this:

    trait Foo {
        unsafe extern "C" fn foo();
    }

    impl Foo for Bar {
        unsafe extern "C" fn foo() { ... }
    }

Fixes #19398.

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