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

@ -165,6 +165,8 @@ trait_selection_explicit_lifetime_required_with_param_type = explicit lifetime r
trait_selection_fn_consider_casting = consider casting the fn item to a fn pointer: `{$casting}`
trait_selection_fn_consider_casting_both = consider casting both fn items to fn pointers using `as {$sig}`
trait_selection_fn_uniq_types = different fn items have unique types, even if their signatures are the same
trait_selection_fps_cast = consider casting to a fn pointer
trait_selection_fps_cast_both = consider casting both fn items to fn pointers using `as {$expected_sig}`