rust/compiler/rustc_trait_selection/src
Romain Perier 8b6ff4a378 Suggest the use of impl Trait in function parameter only
Currently in case of a Trait object in closure parameter, the compiler
suggests either to use a reference, which is correct or to use an
`impl Trait` which is not. Do not emit this suggestion when the parameter
is part of a closure.
2025-04-09 08:56:04 +02:00
..
error_reporting Suggest the use of impl Trait in function parameter only 2025-04-09 08:56:04 +02:00
errors clean code: remove Deref<Target=RegionKind> impl for Region and use .kind() 2025-04-08 10:51:41 +08:00
solve add TypingMode::Borrowck 2025-04-03 11:13:10 +02:00
traits Rollup merge of #139509 - xizheyin:issue-139359, r=lcnr 2025-04-08 18:05:34 +02:00
errors.rs move check_opaque_type_parameter_valid 2025-04-03 11:13:10 +02: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 clean code: remove Deref<Target=RegionKind> impl for Region and use .kind() 2025-04-08 10:51:41 +08: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