ty::TraitRef::{new, from_lang_item}
rustc_fluent_macro
rustc_macros
For more information about how rustc works, see the rustc dev guide.