]> git.lizzy.rs Git - rust.git/commit
auto merge of #4747 : sanxiyn/rust/integral-type, r=graydon
authorbors <bors@rust-lang.org>
Tue, 5 Feb 2013 03:59:06 +0000 (19:59 -0800)
committerbors <bors@rust-lang.org>
Tue, 5 Feb 2013 03:59:06 +0000 (19:59 -0800)
commit52817092a937738bc437800018cf202bb826d712
tree17ec8510415e2c2192e9bdac3439265c4467110a
parentbffe3088c7aa79648ef58b635e24a7a28989d183
parent6d5428cb4ee9117f16d3a5c7f36def4c60b364ed
auto merge of #4747 : sanxiyn/rust/integral-type, r=graydon

`ty::type_is_integral` returns `true` for `ty_bool`. This causes `-true` to compile, instead of resulting in a type error.
src/librustc/middle/ty.rs