rust-lang/rust — pull request #15164 by pcwalton (2014-06-25 01:25:51+00:00)
Title: librustc: Don't try to perform the magical

vector-reference-to-unsafe-pointer-to-element cast if the type to be
casted to is not fully specified.

This is a conservative change to fix the user-visible symptoms of the
issue. A more flexible treatment would delay cast checks to after
function typechecking.

This can break code that did:

let x: *u8 = &([0, 0]) as *_;

Change this code to:

let x: *u8 = &([0, 0]) as *u8;

Closes #14893.

[breaking-change]

r? @alexcrichton