Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const_eval: allow function pointer signatures containing &mut T in const contexts #116015

Merged
merged 2 commits into from
Oct 14, 2023

Commits on Sep 23, 2023

  1. fix(const_eval): correctly check const type for function pointers

    - uses TypeReader for resolving local/return ty to support case where function pointer is before another type in a compound type
    EvanMerlock committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    fd1ccbc View commit details
    Browse the repository at this point in the history
  2. test(const_eval): add test cases for rust-lang#114994

    - add new testcase for TypeVisitor on const-eval mutable ref check
    EvanMerlock committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    d975ae5 View commit details
    Browse the repository at this point in the history