Skip to content

Conversation

@ftxqxd
Copy link
Contributor

@ftxqxd ftxqxd commented Nov 30, 2014

Fixes #19398.

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 rust-lang#19398.

[breaking-change]
@rust-highfive
Copy link
Contributor

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@bors bors closed this Dec 1, 2014
@bors bors merged commit 63553a1 into rust-lang:master Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Order of extern and unsafe is backwards in trait definitions and impls

4 participants