-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add -Z borrowck=migrate
#52681
Merged
Merged
Add -Z borrowck=migrate
#52681
Commits on Jul 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 655894b - Browse repository at this point
Copy the full SHA 655894bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a23e8a7 - Browse repository at this point
Copy the full SHA a23e8a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff2f9e0 - Browse repository at this point
Copy the full SHA ff2f9e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3460115 - Browse repository at this point
Copy the full SHA 3460115View commit details -
Add scary warnings to errors-downgraded-to-warnings in borrowck=migrate.
Also convert an ICE that became reachable code under borrowck=migrate into a normally reported error (which is then downgraded to a warning). This actually has a nice side benefit of providing a somewhat more useful error message, at least in the particular case of the example from issue rust-lang#27282.
Configuration menu - View commit details
-
Copy full SHA for 91dc3e5 - Browse repository at this point
Copy the full SHA 91dc3e5View commit details -
Note that this test is carefully crafted to *try* to not segfault during its run. Howver, it really is representing unsound code that should be rejected after we manage to remove the AST-borrowck entirely from the compiler.
Configuration menu - View commit details
-
Copy full SHA for f808405 - Browse repository at this point
Copy the full SHA f808405View commit details -
Bug fix:
#![feature(nll)]
takes precedence over-Z borrowck=migrate
.(Includes test illustrating desired behavior; compare its diagnostic output to that of the file `borrowck-migreate-to-nll.rs`.)
Configuration menu - View commit details
-
Copy full SHA for 1a59daf - Browse repository at this point
Copy the full SHA 1a59dafView commit details -
As a driveby change, I made `#![feature(nll)]` *always* take precedence over `-Z borrowck`. The main effect this had is that it means tests with `#![feature(nll)]` will ignore uses of `-Z borrowck=compare`. This affected only one test as far as I can tell, and I think that test used `-Z borrowck=compare` only as a historical accident.
Configuration menu - View commit details
-
Copy full SHA for 4b2e553 - Browse repository at this point
Copy the full SHA 4b2e553View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94a2972 - Browse repository at this point
Copy the full SHA 94a2972View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f05f29 - Browse repository at this point
Copy the full SHA 9f05f29View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.