-
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
NLL diagnostics: revise fn check_access_permissions
#51275
NLL diagnostics: revise fn check_access_permissions
#51275
Commits on Jun 19, 2018
-
Thread info about form of variable bindings, including spans of arg t…
…ypes, down into `mir::LocalDecls`. As a drive-by: the ref_for_guards created by `fn declare_binding` should not have been tagged as user_variables in the first place. These secret internal locals are *pointers* to user variables, but themselves are not such (IMO. For now at least.)
Configuration menu - View commit details
-
Copy full SHA for cac6126 - Browse repository at this point
Copy the full SHA cac6126View commit details -
Refactor: Replace anonymous-tuple with tuple struct as prep for addin…
…g more fields in future.
Configuration menu - View commit details
-
Copy full SHA for e848fe0 - Browse repository at this point
Copy the full SHA e848fe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c4c5e - Browse repository at this point
Copy the full SHA c5c4c5eView commit details -
Thread more argument info down from
Hir
into themir::LocalDecls
.Namely, we thread down the `HirId` of the explicit type of the argument. In the case of the special `self` variable with an implicit type, we also thread down a description of its structure (`self`/`mut self`/`&self`/`&mut self`).
Configuration menu - View commit details
-
Copy full SHA for be645be - Browse repository at this point
Copy the full SHA be645beView commit details -
small refactoring: replaced mutable state with
return
statements in…… control flow. As a drive-by, removed some dead-code.
Configuration menu - View commit details
-
Copy full SHA for 6dfed7e - Browse repository at this point
Copy the full SHA 6dfed7eView commit details -
NLL: Broad rewrite of check_access_perimssions.
Tried to unify various common code paths and also vaguely approximate the AST-borrowck diagnostics. The change in (subjective) quality of diagnostics is not a universal improvement. But I think this is a better code base to work from for future fixes.
Configuration menu - View commit details
-
Copy full SHA for 7fd4b52 - Browse repository at this point
Copy the full SHA 7fd4b52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d4df5b - Browse repository at this point
Copy the full SHA 2d4df5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 620a853 - Browse repository at this point
Copy the full SHA 620a853View commit details -
Added diagnostics for suggesting
mut x
on repeated mutations ofx
.(Follow-on commits updating the test suite show the resulting changes to diagnostic output.)
Configuration menu - View commit details
-
Copy full SHA for 0d9998c - Browse repository at this point
Copy the full SHA 0d9998cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35971cc - Browse repository at this point
Copy the full SHA 35971ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for a32fca7 - Browse repository at this point
Copy the full SHA a32fca7View commit details -
Add unit test for case that didn't seem to be covered in existing UI …
…tests (since I made this mistake at first but the tests didn't catch it): we should not suggest adding `mut` to a reassigned `ref` or `ref mut` binding. (The Rust language, since at least 1.0, does not have `mut ref mut` or `ref mut mut` etc.)
Configuration menu - View commit details
-
Copy full SHA for 4684649 - Browse repository at this point
Copy the full SHA 4684649View commit details