Function rustc_lint::foreign_modules::name_of_extern_decl
source · fn name_of_extern_decl(tcx: TyCtxt<'_>, fi: OwnerId) -> SymbolName
Expand description
Get the name of the symbol that’s linked against for a given extern declaration. That is, the name specified in a #[link_name = …] attribute if one was specified, else, just the symbol’s name.