about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-11-14 05:21:21 -0800
committerbors <bors@rust-lang.org>2013-11-14 05:21:21 -0800
commitaf62adfad0d0c055ba82c93bbaad4b8ed6ce274c (patch)
tree9e6a17a25af87e0982fa457d3322db6480d52bce /src/rustllvm/RustWrapper.cpp
parentf9cea4b3a082bc515bc237e0cdc1180b0abd14d2 (diff)
parente538c95e4d5c7df475772639e983770e6425da32 (diff)
downloadrust-af62adfad0d0c055ba82c93bbaad4b8ed6ce274c.tar.gz
rust-af62adfad0d0c055ba82c93bbaad4b8ed6ce274c.zip
auto merge of #9788 : geoffhill/rust/bare-fn-cast, r=pnkfelix
Bare functions are another example of a scalar but non-numeric
type (like char) that should be handled separately in casts.
This disallows expressions like `0 as extern "Rust" fn() -> int;`.

It might be advantageous to allow casts between bare functions
and raw pointers in unsafe code in the future, to pass function
pointers between Rust and C.

Closes #8728
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions