Do not access DefId<->HirId maps before they are initialized.
For more information about how rustc works, see the rustc dev guide.