Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/nameres/diagnostics.rs')
| -rw-r--r-- | crates/hir-def/src/nameres/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/nameres/diagnostics.rs b/crates/hir-def/src/nameres/diagnostics.rs index 3ebc5629d7..0d01f6d0ab 100644 --- a/crates/hir-def/src/nameres/diagnostics.rs +++ b/crates/hir-def/src/nameres/diagnostics.rs @@ -24,7 +24,7 @@ pub enum DefDiagnosticKind { UnconfiguredCode { ast: AstId<ast::Item>, cfg: CfgExpr, opts: CfgOptions }, - UnresolvedProcMacro { ast: MacroCallKind, krate: Option<CrateId> }, + UnresolvedProcMacro { ast: MacroCallKind, krate: CrateId }, UnresolvedMacroCall { ast: MacroCallKind, path: ModPath }, @@ -85,7 +85,7 @@ impl DefDiagnostic { pub(super) fn unresolved_proc_macro( container: LocalModuleId, ast: MacroCallKind, - krate: Option<CrateId>, + krate: CrateId, ) -> Self { Self { in_module: container, kind: DefDiagnosticKind::UnresolvedProcMacro { ast, krate } } } |