rust/compiler/rustc_trait_selection/src
Matthias Krüger 94b1960535
Rollup merge of #95260 - compiler-errors:fn, r=davidtwco
Better suggestions for `Fn`-family trait selection errors

1. Suppress suggestions to add `std::ops::Fn{,Mut,Once}` bounds when a type already implements `Fn{,Mut,Once}`
2. Add a note that points out that a type does in fact implement `Fn{,Mut,Once}`, but the arguments vary (either by number or by actual arguments)
3. Add a note that points out that a type does in fact implement `Fn{,Mut,Once}`, but not the right one (e.g. implements `FnMut`, but `Fn` is required).

Fixes #95147
2022-04-01 06:59:41 +02:00
..
traits Rollup merge of #95260 - compiler-errors:fn, r=davidtwco 2022-04-01 06:59:41 +02:00
autoderef.rs Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
infer.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
lib.rs suggest enabling generic_const_exprs feature if const is unevaluatable 2022-03-09 14:47:50 -08:00
opaque_types.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00