rustc_lint::foreign_modules

Function get_relevant_span

Source
fn get_relevant_span(tcx: TyCtxt<'_>, fi: OwnerId) -> Span
Expand description

We want to ensure that we use spans for both decls that include where the name was defined, whether that was from the link_name attribute or not.