]> git.lizzy.rs Git - rust.git/commit
typeck: Fix ICE with struct update syntax
authorDan Robertson <danlrobertson89@gmail.com>
Fri, 11 May 2018 03:56:08 +0000 (03:56 +0000)
committerDan Robertson <danlrobertson89@gmail.com>
Sat, 12 May 2018 02:47:58 +0000 (02:47 +0000)
commitf6a46cf4d16e5fa38ee983dd6e191ae7e46acaae
tree3975f7c300121cb9ca3fe0ca6589af1bf6415d79
parent41707d8df9a441e19387a4a61415ee0af58a9e48
typeck: Fix ICE with struct update syntax

If check_expr_struct_fields fails, do not continue to record update.
If we continue to record update, the struct may cause us to ICE later
on indexing a field that may or may not exist.
src/librustc_typeck/check/mod.rs
src/test/ui/issue-50618.rs [new file with mode: 0644]
src/test/ui/issue-50618.stderr [new file with mode: 0644]