rust-lang/rust — pull request #15961 by pcwalton (2014-07-24 22:30:35+00:00)
Title: librustc: Make references to functions not have static lifetime.

This breaks code like:

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

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

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
}

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

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

Closes #13595.

[breaking-change]

r? @huonw