rust/compiler/rustc_const_eval/src
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
..
const_eval Auto merge of #115524 - RalfJung:misalign, r=wesleywiser 2023-10-14 00:57:09 +00:00
interpret Auto merge of #115524 - RalfJung:misalign, r=wesleywiser 2023-10-14 00:57:09 +00:00
transform Auto merge of #116015 - EvanMerlock:master, r=oli-obk 2023-10-14 09:18:28 +00:00
util Auto merge of #115583 - RalfJung:packed-unsized, r=lcnr 2023-10-07 10:57:18 +00:00
errors.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
lib.rs Have a single struct for queries and hook 2023-09-22 16:26:20 +00:00