mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
139f63a6eb
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |