about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-25 08:06:21 +0000
committerbors <bors@rust-lang.org>2014-06-25 08:06:21 +0000
commitbab614f5fa725d248afc5f0530c835f37998ce8f (patch)
treeea688a212917e421b2ebf1105c5d3e62cf7dc407 /src/libstd
parent9e103acaba98ce654c073c89f74a84b861f16d6e (diff)
parent315f2a70542078c45c9f7ebf4face32a54fde774 (diff)
downloadrust-bab614f5fa725d248afc5f0530c835f37998ce8f.tar.gz
rust-bab614f5fa725d248afc5f0530c835f37998ce8f.zip
auto merge of #15164 : pcwalton/rust/vector-cast-weirdness, r=alexcrichton
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
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions