This allows removing a confusing mem::replace in create_global_ctxt
For more information about how rustc works, see the rustc dev guide.