rust-lang/rust — pull request #16517 by dotdash (2014-08-15 11:17:35+00:00)
Title: Generate slightly better unoptimized code for for-loops

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.