about summary refs log tree commit diff
path: root/src/test/compile-fail/refutable-pattern-errors.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-06-24 18:22:21 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-06-24 23:27:41 -0700
commit315f2a70542078c45c9f7ebf4face32a54fde774 (patch)
tree14bdeff6104a5799976cd6573423820da996bda3 /src/test/compile-fail/refutable-pattern-errors.rs
parent7a93beef7f692b34168ad69633f56483d38ad8fc (diff)
downloadrust-315f2a70542078c45c9f7ebf4face32a54fde774.tar.gz
rust-315f2a70542078c45c9f7ebf4face32a54fde774.zip
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]
Diffstat (limited to 'src/test/compile-fail/refutable-pattern-errors.rs')
0 files changed, 0 insertions, 0 deletions