fn emit_bug_diagnostic( span: Option<Span>, args: Arguments<'_>, location: &'static Location<'static>, ) -> bool
Returns true if it printed the diagnostic, which happens if a tcx is available.
tcx