rustc: Strip struct fields and enum variants

Closes #11085
auto merge of #11093 : alexcrichton/rust/issue-11085, r=pcwalton

Closes #11085