Closed
Description
This code:
rust/src/librustc_mir/transform/inline.rs
Lines 96 to 97 in 994cdd9
should not pattern-match on func
, but rather call its ty
method to get its type.
What this means is that let f = foo; f();
should inline as well as foo()
(but today it doesn't).