make diagnostic function public
This commit is contained in:
parent
196f389a70
commit
c1eae3d028
@ -511,6 +511,14 @@ impl DefMap {
|
||||
self.diagnostics.as_slice()
|
||||
}
|
||||
|
||||
pub fn push_diagnostic(&mut self, d: DefDiagnostic) {
|
||||
self.diagnostics.push(d)
|
||||
}
|
||||
|
||||
pub fn push_diagnostics(&mut self, i: impl Iterator<Item = DefDiagnostic>) {
|
||||
self.diagnostics.extend(i)
|
||||
}
|
||||
|
||||
pub fn recursion_limit(&self) -> Option<u32> {
|
||||
self.recursion_limit
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ impl DefDiagnostic {
|
||||
Self { in_module: container, kind: DefDiagnosticKind::UnresolvedImport { id, index } }
|
||||
}
|
||||
|
||||
pub(super) fn unconfigured_code(
|
||||
pub fn unconfigured_code(
|
||||
container: LocalModuleId,
|
||||
ast: AstId<ast::Item>,
|
||||
cfg: CfgExpr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user