migrate: deref_into_dyn_supertrait.rs
This commit is contained in:
parent
f38db48dbd
commit
fe09291036
3 changed files with 33 additions and 18 deletions
|
@ -551,6 +551,24 @@ pub struct BuiltinUnexpectedCliConfigValue {
|
|||
pub value: Symbol,
|
||||
}
|
||||
|
||||
// deref_into_dyn_supertrait.rs
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_supertrait_as_deref_target)]
|
||||
pub struct SupertraitAsDerefTarget<'a> {
|
||||
pub t: Ty<'a>,
|
||||
pub target_principal: String,
|
||||
// pub target_principal: Binder<'a, ExistentialTraitRef<'b>>,
|
||||
#[subdiagnostic]
|
||||
pub label: Option<SupertraitAsDerefTargetLabel>,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[label(label)]
|
||||
pub struct SupertraitAsDerefTargetLabel {
|
||||
#[primary_span]
|
||||
pub label: Span,
|
||||
}
|
||||
|
||||
// enum_intrinsics_non_enums.rs
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_enum_intrinsics_mem_discriminant)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue