Use a different hir type for patterns in pattern types than we use in match patterns
This commit is contained in:
parent
613bdd4997
commit
f0308938ba
27 changed files with 311 additions and 168 deletions
|
@ -2,13 +2,6 @@ use rustc_macros::Diagnostic;
|
|||
use rustc_middle::ty::Ty;
|
||||
use rustc_span::Span;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_pattern_type_wild_pat)]
|
||||
pub(crate) struct WildPatTy {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(hir_analysis_invalid_base_type)]
|
||||
pub(crate) struct InvalidBaseType<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue