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};
38
38
use rustc_hir:: def_id:: { DefId , LocalDefId , LocalDefIdSet , CRATE_DEF_ID } ;
39
39
use rustc_hir:: { ForeignItemKind , GenericParamKind , HirId , PatKind } ;
40
40
use rustc_index:: vec:: Idx ;
41
- use rustc_middle:: lint:: LintDiagnosticBuilder ;
41
+ use rustc_middle:: lint:: { in_external_macro , LintDiagnosticBuilder } ;
42
42
use rustc_middle:: ty:: layout:: { LayoutError , LayoutOf } ;
43
43
use rustc_middle:: ty:: print:: with_no_trimmed_paths;
44
44
use rustc_middle:: ty:: subst:: { GenericArgKind , Subst } ;
@@ -2115,6 +2115,7 @@ impl ExplicitOutlivesRequirements {
2115
2115
None
2116
2116
}
2117
2117
} )
2118
+ . filter ( |( _, span) | !in_external_macro ( tcx. sess , * span) )
2118
2119
. collect ( )
2119
2120
}
2120
2121
You can’t perform that action at this time.
0 commit comments