]> git.lizzy.rs Git - rust.git/commit
Auto merge of #31283 - dotdash:32_64_cc, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 29 Jan 2016 20:58:09 +0000 (20:58 +0000)
committerbors <bors@rust-lang.org>
Fri, 29 Jan 2016 20:58:09 +0000 (20:58 +0000)
commit074f49a350f22b6f33890cd105b2ebe2c790ee3c
treec879cc4147dddf7de4ddebf14ceda2cb2fe236ab
parent0f196bcc3b23925854e3d758c03f56c7520e9b99
parentfdf65e719c29353bbc70313107f511b58af49022
Auto merge of #31283 - dotdash:32_64_cc, r=alexcrichton

When cross compiling for a target that has a larger usize type than the
host system, we use a truncated value to mark data as dropped,
eventually leading to drop calls on already dropped data. To properly
handle this, the drop pattern needs to be of type u64.

Since C_integral truncates its given value to the requested size anyway,
we can also drop the function that chose between the u32 and u64 values,
and always use the u64 constant.

Fixes #31139

r? @pnkfelix