diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-28 19:22:24 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-28 19:28:49 +0100 |
| commit | d11b48c85c1cceb559ab8a08815ba3f7b3312c44 (patch) | |
| tree | 9892ae0c01cce5cc2c47c567ffa65c14cb05f7a2 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 48aeaba9347a25b2e3848e0dcbc1d8f6b0076718 (diff) | |
| download | rust-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
