check_mod_impl_wf
check_mod_type_wf
gen
For more information about how rustc works, see the rustc dev guide.