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

[nll] better error message when returning refs to upvars #54802

Merged
merged 2 commits into from
Oct 10, 2018

Commits on Oct 9, 2018

  1. Improve errors for FnMut closures.

    This commit improves the errors for `FnMut` closures where a reference
    to a captured variable is escaping.
    davidtwco committed Oct 9, 2018
    Configuration menu
    Copy the full SHA
    c65e119 View commit details
    Browse the repository at this point in the history
  2. Improve message for closure returning a closure.

    Now when a `FnMut` closure is returning a closure that contains a
    reference to a captured variable, we provide an error that makes it more
    clear what is happening.
    davidtwco committed Oct 9, 2018
    Configuration menu
    Copy the full SHA
    98633b4 View commit details
    Browse the repository at this point in the history