File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,14 @@ impl DefMap {
511
511
self . diagnostics . as_slice ( )
512
512
}
513
513
514
+ pub fn push_diagnostic ( & mut self , d : DefDiagnostic ) {
515
+ self . diagnostics . push ( d)
516
+ }
517
+
518
+ pub fn push_diagnostics ( & mut self , i : impl Iterator < Item = DefDiagnostic > ) {
519
+ self . diagnostics . extend ( i)
520
+ }
521
+
514
522
pub fn recursion_limit ( & self ) -> Option < u32 > {
515
523
self . recursion_limit
516
524
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl DefDiagnostic {
73
73
Self { in_module : container, kind : DefDiagnosticKind :: UnresolvedImport { id, index } }
74
74
}
75
75
76
- pub ( super ) fn unconfigured_code (
76
+ pub fn unconfigured_code (
77
77
container : LocalModuleId ,
78
78
ast : AstId < ast:: Item > ,
79
79
cfg : CfgExpr ,
You can’t perform that action at this time.
0 commit comments