mozilla/rust — Issue #1777: core::unsafe::reinterpret_cast should move in its argument?
Author: brson
Created: 2012-02-07 19:14:43+00:00
State: open
Labels: easy, lib

When used with pointer types this function is almost always paired with unsafe::leak to make the caller forget about one of the pointers. This would not be necessary if reinterpret_cast consumed the input value.