Require TAITs to be mentioned in the signatures of functions that register hidden types for them
This commit is contained in:
parent
921f669749
commit
4c99872efe
70 changed files with 796 additions and 184 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue