-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
support type annot in constants, casts #55152
Merged
bors
merged 21 commits into
rust-lang:master
from
nikomatsakis:nll-issue-54571-type-annot-in-constants
Oct 19, 2018
Merged
support type annot in constants, casts #55152
bors
merged 21 commits into
rust-lang:master
from
nikomatsakis:nll-issue-54571-type-annot-in-constants
Oct 19, 2018
Commits on Oct 19, 2018
-
This dates from the days before we instantiated user types with inference variables.
Configuration menu - View commit details
-
Copy full SHA for bd93741 - Browse repository at this point
Copy the full SHA bd93741View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebdfda6 - Browse repository at this point
Copy the full SHA ebdfda6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e94959b - Browse repository at this point
Copy the full SHA e94959bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0a3b4c - Browse repository at this point
Copy the full SHA a0a3b4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7ab33e - Browse repository at this point
Copy the full SHA e7ab33eView commit details -
pull
relate_type_and_user_type
code intotype_check
moduleIt's really layered atop the core "relate-types" code
Configuration menu - View commit details
-
Copy full SHA for f99300f - Browse repository at this point
Copy the full SHA f99300fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 121f3c8 - Browse repository at this point
Copy the full SHA 121f3c8View commit details -
normalize and prove predicates
Also include a test that was not working previously.
Configuration menu - View commit details
-
Copy full SHA for bfb1d95 - Browse repository at this point
Copy the full SHA bfb1d95View commit details -
Configuration menu - View commit details
-
Copy full SHA for e20fa70 - Browse repository at this point
Copy the full SHA e20fa70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ad300 - Browse repository at this point
Copy the full SHA 80ad300View commit details -
create type ascription for any cast
Also, avoid shadowing of the `ty` variable by giving the `cast_ty` and `var_ty` variables different names. We want to get the user-provided type from `cast_ty.hir_id`.
Configuration menu - View commit details
-
Copy full SHA for 2d98e9e - Browse repository at this point
Copy the full SHA 2d98e9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab79cf9 - Browse repository at this point
Copy the full SHA ab79cf9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26fdac6 - Browse repository at this point
Copy the full SHA 26fdac6View commit details -
lowering casts in constants now creates multiple uses
This can trigger more errors than before. Not sure what is the best fix here.
Configuration menu - View commit details
-
Copy full SHA for d5d5e8c - Browse repository at this point
Copy the full SHA d5d5e8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a66ab2b - Browse repository at this point
Copy the full SHA a66ab2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02e5a90 - Browse repository at this point
Copy the full SHA 02e5a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 061c9a2 - Browse repository at this point
Copy the full SHA 061c9a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 820c265 - Browse repository at this point
Copy the full SHA 820c265View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16b3ea1 - Browse repository at this point
Copy the full SHA 16b3ea1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5cc7db - Browse repository at this point
Copy the full SHA f5cc7dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a7bb0e - Browse repository at this point
Copy the full SHA 9a7bb0eView 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.