about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2019-01-13 14:23:32 +0000
committerDan Robertson <dan@dlrobertson.com>2019-01-13 14:23:32 +0000
commitd6c19191b05c11c6a3f5cbf25178ec749f5a3414 (patch)
tree5976d09bec43f7e815ec70f63d94291021e63dae /src/rustllvm/RustWrapper.cpp
parent0c91f3d97fe78d31c8cf3abb1858c65d73c6aa17 (diff)
downloadrust-d6c19191b05c11c6a3f5cbf25178ec749f5a3414.tar.gz
rust-d6c19191b05c11c6a3f5cbf25178ec749f5a3414.zip
librustc_mir: Fix ICE with slice patterns
If a match arm does not include all fields in a structure and a later
pattern includes a field that is an array, we will attempt to use the
array type from the prior arm. When calculating the field type, treat
a array of an unknown size as a TyErr.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions