3use rustc_ast::*;
4use rustc_data_structures::fx::FxIndexMap;
5▶use rustc_errors::{E0570, ErrorGuaranteed, struct_span_code_err};
6use rustc_hir::attrs::{AttributeKind, EiiImplResolution};
7use rustc_hir::def::{DefKind, PerNS, Res};
· · ·
20use tracing::instrument;
21
22▶use super::errors::{InvalidAbi, InvalidAbiSuggestion, TupleStructWithDefault, UnionWithDefault};
23use super::stability::{enabled_names, gate_unstable_abi};
24use super::{
· · ·
192 EiiImplResolution::Macro(macro_did)
193 } else {
194▶ EiiImplResolution::Error(
195 self.dcx().span_delayed_bug(*span, "eii never resolved without errors given"),
196 )
· · ·
195▶ self.dcx().span_delayed_bug(*span, "eii never resolved without errors given"),
196 )
197 };
· · ·
635 let res = self.get_partial_res(id)?;
636 let Some(did) = res.expect_full_res().opt_def_id() else {
637▶ self.dcx().span_delayed_bug(path.span, "should have errored in resolve");
638 return None;
639 };
+ 12 more matches in this file