diff options
| author | bors <bors@rust-lang.org> | 2023-12-18 20:44:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-18 20:44:09 +0000 |
| commit | 3f28fe133475ec5faf3413b556bf3cfb0d51336c (patch) | |
| tree | f746d985d0d99243ca984a064caafc8c3dc555b4 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | bf9229a2e366b4c311f059014a4aa08af16de5d8 (diff) | |
| parent | faea6ad5792f9d6c0b12e3b8212815ff64169121 (diff) | |
| download | rust-3f28fe133475ec5faf3413b556bf3cfb0d51336c.tar.gz rust-3f28fe133475ec5faf3413b556bf3cfb0d51336c.zip | |
Auto merge of #119023 - compiler-errors:fn-trait-constness, r=fee1-dead
Check `FnPtr`/`FnDef` built-in fn traits correctly with effects 1. Teach the (old) trait solver how to handle the constness for built-in impls of the `Fn*` family of traits. This unfortunately doesn't support const closures just yet. 2. Fix the `const_eval_select`. It turns out that the `where` clause bounds on `const_eval_select` force the effect parameter for both fndefs to be `true` -- with effects, we will leave off any explicit where clauses and register these obligations manually. I can elaborate on (2.) if you think it needs a better explanation! r? fee1-dead
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
