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] Use new region infer errors when explaining borrows #55069

Merged
merged 4 commits into from
Oct 21, 2018

Commits on Oct 20, 2018

  1. Configuration menu
    Copy the full SHA
    a2c2487 View commit details
    Browse the repository at this point in the history
  2. Use more accurate ConstraintCategorys

    Adds UseAsConst and UseAsStatic to replace Return in consts/statics.
    Don't report the arguments to an overloaded operator as CallArguments.
    Also don't report "escaping data" in these items.
    matthewjasper committed Oct 20, 2018
    Configuration menu
    Copy the full SHA
    049bee0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    275432c View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2018

  1. Use new region infer errors for explaining borrows

    This gives at least some explanation for why a borrow is expected to
    last for a certain free region. Also:
    
    * Reports E0373: "closure may outlive the current function" with NLL.
    * Special cases the case of returning a reference to (or value
      referencing) a local variable or temporary (E0515).
    * Special case assigning a reference to a local variable in a closure
      to a captured variable.
    matthewjasper committed Oct 21, 2018
    Configuration menu
    Copy the full SHA
    2a3969a View commit details
    Browse the repository at this point in the history