rust/compiler/rustc_trait_selection/src
bors 4c6c629866 Auto merge of #115538 - lcnr:fn-def-wf, r=compiler-errors
check `FnDef` return type for WF

better version of #106807, fixes #84533 (mostly). It's not perfect given that we still ignore WF requirements involving bound regions but I wasn't able to quickly write an example, so even if theoretically exploitable, it should be far harder to trigger.

This is strictly more restrictive than checking the return type for WF as part of the builtin `FnDef: FnOnce` impl (#106807) and moving to this approach in the future will not break any code.

~~It also agrees with my theoretical view of how this should behave~~

r? types
2024-04-04 08:43:53 +00:00
..
solve Uplift and start using check_args_compatible more liberally 2024-04-03 11:18:55 -04:00
traits Auto merge of #115538 - lcnr:fn-def-wf, r=compiler-errors 2024-04-04 08:43:53 +00:00
errors.rs Rename AddToDiagnostic as Subdiagnostic. 2024-03-11 10:04:49 +11:00
infer.rs Remove EvaluatedToErrStackDependent 2024-03-31 20:44:30 -04:00
lib.rs Check x86_64 size assertions on aarch64, too 2024-04-03 16:53:03 +11:00
regions.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00