@@ -32,15 +32,16 @@ use rustc_ast_pretty::pprust::{self, expr_to_string};
3232use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
3333use rustc_data_structures:: stack:: ensure_sufficient_stack;
3434use rustc_errors:: {
35- fluent, Applicability , Diagnostic , DiagnosticMessage , DiagnosticStyledString , MultiSpan ,
35+ fluent, Applicability , Diagnostic , DiagnosticMessage , DiagnosticStyledString ,
36+ LintDiagnosticBuilder , MultiSpan ,
3637} ;
3738use rustc_feature:: { deprecated_attributes, AttributeGate , BuiltinAttribute , GateIssue , Stability } ;
3839use rustc_hir as hir;
3940use rustc_hir:: def:: { DefKind , Res } ;
4041use rustc_hir:: def_id:: { DefId , LocalDefId , LocalDefIdSet , CRATE_DEF_ID } ;
4142use rustc_hir:: { ForeignItemKind , GenericParamKind , HirId , PatKind , PredicateOrigin } ;
4243use rustc_index:: vec:: Idx ;
43- use rustc_middle:: lint:: { in_external_macro, LintDiagnosticBuilder } ;
44+ use rustc_middle:: lint:: in_external_macro;
4445use rustc_middle:: ty:: layout:: { LayoutError , LayoutOf } ;
4546use rustc_middle:: ty:: print:: with_no_trimmed_paths;
4647use rustc_middle:: ty:: subst:: GenericArgKind ;
0 commit comments