rustc: Strip struct fields and enum variants

Closes #11085