diff options
| author | bors <bors@rust-lang.org> | 2014-06-25 08:06:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-25 08:06:21 +0000 |
| commit | bab614f5fa725d248afc5f0530c835f37998ce8f (patch) | |
| tree | ea688a212917e421b2ebf1105c5d3e62cf7dc407 /src/libstd | |
| parent | 9e103acaba98ce654c073c89f74a84b861f16d6e (diff) | |
| parent | 315f2a70542078c45c9f7ebf4face32a54fde774 (diff) | |
| download | rust-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
