1
Fork 0

Rollup merge of #133382 - mu001999-contrib:diag/fnitem, r=lcnr

Suggest considering casting fn item as fn pointer in more cases

Fixes #132648
This commit is contained in:
Matthias Krüger 2025-01-29 15:29:27 +01:00 committed by GitHub
commit f8d103df43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 114 additions and 6 deletions

View file

@ -1496,6 +1496,12 @@ pub struct FnConsiderCasting {
pub casting: String,
}
#[derive(Subdiagnostic)]
#[help(trait_selection_fn_consider_casting_both)]
pub struct FnConsiderCastingBoth<'a> {
pub sig: Binder<'a, FnSig<'a>>,
}
#[derive(Subdiagnostic)]
pub enum SuggestAccessingField<'a> {
#[suggestion(