about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-07-25 07:46:12 +0000
committerbors <bors@rust-lang.org>2014-07-25 07:46:12 +0000
commite5984640e63d2e9f613d857ad2d48ff57b310655 (patch)
tree73f74ca586a4c1ab3f6c816ae3d59592ef264204 /src/rustllvm/RustWrapper.cpp
parent4e388859a2e12f4019a09224d626eb07b8333651 (diff)
parentd1dcd19d26ae8ed8a3836defb3e7f4166ca178b8 (diff)
downloadrust-e5984640e63d2e9f613d857ad2d48ff57b310655.tar.gz
rust-e5984640e63d2e9f613d857ad2d48ff57b310655.zip
auto merge of #15961 : pcwalton/rust/fn-pointer-in-iterator, r=huonw
This breaks code like:

    struct A<'a> {
        func: &'a fn() -> Option<int>
    }

    fn foo() -> Option<int> { ... }

    fn create() -> A<'static> {
        A {
            func: &foo
        }
    }

Change this code to not take functions by reference. For example:

    struct A {
        func: extern "Rust" fn() -> Option<int>
    }

    fn foo() -> Option<int> { ... }

    fn create() -> A {
        A {
            func: foo
        }
    }

Closes #13595.

[breaking-change]

r? @huonw
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions