diff options
| author | bors <bors@rust-lang.org> | 2023-10-14 09:18:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-14 09:18:28 +0000 |
| commit | 139f63a6eba2b7a10462e1c9f0ef396b01e524f5 (patch) | |
| tree | edbe781b55693b6b999d9685b8a5d57ab63c32c7 /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | 481d45abeced571b533016a994cba7337102a4a4 (diff) | |
| parent | d975ae502749fa41d460588be39314f19b77db5d (diff) | |
| download | rust-139f63a6eba2b7a10462e1c9f0ef396b01e524f5.tar.gz rust-139f63a6eba2b7a10462e1c9f0ef396b01e524f5.zip | |
Auto merge of #116015 - EvanMerlock:master, r=oli-obk
const_eval: allow function pointer signatures containing &mut T in const contexts potentially fixes #114994 We utilize a `TypeVisitor` here in order to more easily handle control flow. - In the event the typekind the Visitor sees is a function pointer, we skip over it - However, otherwise we do one of two things: - If we find a mutable reference, check it, then continue visiting types - If we find any other type, continue visiting types This means we will check if the function pointer _itself_ is mutable, but not if any of the types _within_ are.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
