bors 139f63a6eb 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.
2023-10-14 09:18:28 +00:00
..
2023-05-01 16:15:13 +08:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-08-06 13:34:53 +00:00
2023-04-16 11:38:52 +00:00
2023-01-31 17:26:06 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:54:13 -03:00
2023-02-16 11:42:35 -03:00
2023-04-03 15:59:21 +00:00
2023-02-16 11:42:35 -03:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-07-27 15:51:02 +00:00
2023-10-08 10:06:17 +00:00
2023-05-05 20:36:21 +02:00
2023-07-29 11:47:26 +02:00
2023-01-15 19:46:20 +00:00
2023-08-06 13:34:53 +00:00
2023-08-07 17:16:10 +00:00
2023-04-16 11:38:52 +00:00