1
Fork 0

HIR ty lowering: Refactor the way the projectee ("QSelf") gets passed to diagnostics

This commit is contained in:
León Orell Valerian Liehr 2024-06-14 12:28:23 +02:00
parent ef121f28d8
commit 898448ca58
No known key found for this signature in database
GPG key ID: D17A07215F68E713
5 changed files with 86 additions and 69 deletions

View file

@ -22,7 +22,7 @@ pub struct AmbiguousAssocItem<'a> {
pub span: Span,
pub assoc_kind: &'static str,
pub assoc_name: Ident,
pub ty_param_name: &'a str,
pub qself: &'a str,
}
#[derive(Diagnostic)]
@ -75,7 +75,7 @@ pub struct AssocItemNotFound<'a> {
pub span: Span,
pub assoc_name: Ident,
pub assoc_kind: &'static str,
pub ty_param_name: &'a str,
pub qself: &'a str,
#[subdiagnostic]
pub label: Option<AssocItemNotFoundLabel<'a>>,
#[subdiagnostic]
@ -134,7 +134,7 @@ pub enum AssocItemNotFoundSugg<'a> {
Other {
#[primary_span]
span: Span,
ty_param_name: &'a str,
qself: &'a str,
assoc_kind: &'static str,
suggested_name: Symbol,
},