about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGeoff Hill <geoff@geoffhill.org>2013-10-09 15:36:26 -0700
committerGeoff Hill <geoff@geoffhill.org>2013-10-10 01:11:09 +0000
commite538c95e4d5c7df475772639e983770e6425da32 (patch)
tree599f6ee483c31f47982a1938897a310ff208c17b /src/rustllvm/RustWrapper.cpp
parent11d56706479982fd074130a6c9af2bb74968baf2 (diff)
downloadrust-e538c95e4d5c7df475772639e983770e6425da32.tar.gz
rust-e538c95e4d5c7df475772639e983770e6425da32.zip
Typeck: Disallow scalar casts to bare_fn.
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