]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #16517 : dotdash/rust/for_trunc, r=pcwalton
authorbors <bors@rust-lang.org>
Fri, 15 Aug 2014 20:31:16 +0000 (20:31 +0000)
committerbors <bors@rust-lang.org>
Fri, 15 Aug 2014 20:31:16 +0000 (20:31 +0000)
The discriminant for Option values is either 0 or 1, so we can just
truncate the value to an i1, which ends up as a no-op for Options
containing pointers.


Trivial merge