It turns out that a dwarf2_cu can remain allocated after psymtab
expansion is done, and so it makes sense to clear rust_unions when
done processing it.
Tested on x86-64 Fedora 27.
2018-05-14  Tom Tromey  <tom@tromey.com>
	* dwarf2read.c (rust_union_quirks): Clear rust_unions.
+2018-05-14  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (rust_union_quirks): Clear rust_unions.
+
 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
 
   gdb_assert (cu->language == language_rust);
   for (struct type *type : cu->rust_unions)
     quirk_rust_enum (type, cu->per_cu->dwarf2_per_objfile->objfile);
+  /* We don't need this any more.  */
+  cu->rust_unions.clear ();
 }
 
 /* Return the symtab for PER_CU.  This works properly regardless of