rust/compiler/rustc_trait_selection/src
Matthias Krüger b41e2bd807
Rollup merge of #139515 - compiler-errors:sig-mismatch, r=lcnr
Improve presentation of closure signature mismatch from `Fn` trait goal

Flip the order of "expected" and "found" since that wasn't correct.

Don't present the arguments as a tuple, since it leaves a trailing comma. Instead, just use `fn(arg, arg)`.

Finally, be better with binders since we were just skipping binders.

r? oli-obk or reassign
2025-04-08 21:25:59 +02:00
..
error_reporting Remove unnecessary dyn Display in favor of str 2025-04-08 06:09:04 +00:00
errors Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
solve add TypingMode::Borrowck 2025-04-03 11:13:10 +02:00
traits Fix trait upcasting to dyn type with no principal when there are projections 2025-04-05 19:34:04 +00:00
errors.rs Remove unnecessary dyn Display in favor of str 2025-04-08 06:09:04 +00:00
infer.rs Fix next solver handling of shallow trait impl check 2025-03-19 14:40:14 +00:00
lib.rs move check_opaque_type_parameter_valid 2025-04-03 11:13:10 +02:00
opaque_types.rs add TypingMode::Borrowck 2025-04-03 11:13:10 +02:00
regions.rs Only use implied bounds hack if bevy, and use deeply normalize in implied bounds hack 2025-03-04 18:18:48 +00:00
solve.rs impossible obligations check fast path 2024-10-10 06:09:50 -04:00