The information is stored in used_crate_source too anyway
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.