resolve: derive diag for undetermined macro resolution

This commit is contained in:
bohan 2023-09-04 00:52:17 +08:00
parent abfc6c4438
commit 7bad066f82
3 changed files with 21 additions and 8 deletions

View file

@ -654,6 +654,16 @@ pub(crate) struct CannotDetermineImportResolution {
pub(crate) span: Span,
}
#[derive(Diagnostic)]
#[diag(resolve_cannot_determine_macro_resolution)]
#[note]
pub(crate) struct CannotDetermineMacroResolution {
#[primary_span]
pub(crate) span: Span,
pub(crate) kind: &'static str,
pub(crate) path: String,
}
#[derive(Diagnostic)]
#[diag(resolve_cannot_be_reexported_private, code = "E0364")]
pub(crate) struct CannotBeReexportedPrivate {