Allow empty functional updating of structs

Fixes #8972
auto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton

Fixes #8972