about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2015-02-28 19:22:24 +0100
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-02-28 19:28:49 +0100
commitd11b48c85c1cceb559ab8a08815ba3f7b3312c44 (patch)
tree9892ae0c01cce5cc2c47c567ffa65c14cb05f7a2 /src/rustllvm/ExecutionEngineWrapper.cpp
parent48aeaba9347a25b2e3848e0dcbc1d8f6b0076718 (diff)
downloadrust-d11b48c85c1cceb559ab8a08815ba3f7b3312c44.tar.gz
rust-d11b48c85c1cceb559ab8a08815ba3f7b3312c44.zip
Error out when using static_assert on a non-boolean value
static_assert is documented as working on static with type `bool`, but
we currently accept it on any const static and crash when the const has
an non-integral type.

This is a breaking-change for anyone who used static_assert on types
likes i32, which happened to work but seems like an unintended
consequence of the missing error checking.

[breaking-change]

Fixes #22056
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions