]> git.lizzy.rs Git - rust.git/commitdiff
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)
`ty::type_is_integral` returns `true` for `ty_bool`. This causes `-true` to compile, instead of resulting in a type error.

1  2 
src/librustc/middle/ty.rs

Simple merge