1
Fork 0
rust/compiler/rustc_const_eval/src/transform
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
..
check_consts Auto merge of #116015 - EvanMerlock:master, r=oli-obk 2023-10-14 09:18:28 +00:00
mod.rs Don't re-export MirPass 2021-11-29 12:58:15 -08:00
promote_consts.rs subtyping_projections 2023-10-02 23:37:49 +03:00
validate.rs change is_subtype to relate_types 2023-10-02 23:39:45 +03:00