File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ use rustc_hir::def::{DefKind, Res};
3838use rustc_hir:: def_id:: { DefId , LocalDefId , LocalDefIdSet , CRATE_DEF_ID } ;
3939use rustc_hir:: { ForeignItemKind , GenericParamKind , HirId , PatKind } ;
4040use rustc_index:: vec:: Idx ;
41- use rustc_middle:: lint:: LintDiagnosticBuilder ;
41+ use rustc_middle:: lint:: { in_external_macro , LintDiagnosticBuilder } ;
4242use rustc_middle:: ty:: layout:: { LayoutError , LayoutOf } ;
4343use rustc_middle:: ty:: print:: with_no_trimmed_paths;
4444use rustc_middle:: ty:: subst:: { GenericArgKind , Subst } ;
@@ -2115,6 +2115,7 @@ impl ExplicitOutlivesRequirements {
21152115 None
21162116 }
21172117 } )
2118+ . filter ( |( _, span) | !in_external_macro ( tcx. sess , * span) )
21182119 . collect ( )
21192120 }
21202121
You can’t perform that action at this time.
0 commit comments