diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-09-04 17:05:31 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-09-04 23:09:51 -0400 |
| commit | b49e9fa794addc197e58743bdc120cb9740b73c0 (patch) | |
| tree | 871cb27ab7a5fe68de7aced2ce22794bb9011f1b /src/libsyntax/parse | |
| parent | 8827b94e5b02d8f0c9d1d9858f3e387e55711dd4 (diff) | |
| download | rust-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
