1
Fork 0

Require TAITs to be mentioned in the signatures of functions that register hidden types for them

This commit is contained in:
Oli Scherer 2023-06-15 09:41:14 +00:00
parent 921f669749
commit 4c99872efe
70 changed files with 796 additions and 184 deletions

View file

@ -184,6 +184,16 @@ pub struct UnconstrainedOpaqueType {
pub what: &'static str,
}
#[derive(Diagnostic)]
#[diag(hir_analysis_tait_forward_compat)]
#[note]
pub struct TaitForwardCompat {
#[primary_span]
pub span: Span,
#[note]
pub item_span: Span,
}
pub struct MissingTypeParams {
pub span: Span,
pub def_span: Span,