about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-09-04 17:05:31 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-09-04 23:09:51 -0400
commitb49e9fa794addc197e58743bdc120cb9740b73c0 (patch)
tree871cb27ab7a5fe68de7aced2ce22794bb9011f1b /src/libsyntax/parse
parent8827b94e5b02d8f0c9d1d9858f3e387e55711dd4 (diff)
downloadrust-b49e9fa794addc197e58743bdc120cb9740b73c0.tar.gz
rust-b49e9fa794addc197e58743bdc120cb9740b73c0.zip
forbid cast as bool
This is currently unsound since `bool` is represented as `i8`. It will
become sound when `bool` is stored as `i8` but always used as `i1`.

However, the current behaviour will always be identical to `x & 1 != 0`,
so there's no need for it. It's also surprising, since `x != 0` is the
expected behaviour.

Closes #7311
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions