-
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
Parse the syntax described in RFC 2632 #67820
Merged
Merged
Commits on Jan 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 63e2e44 - Browse repository at this point
Copy the full SHA 63e2e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fc4158 - Browse repository at this point
Copy the full SHA 6fc4158View commit details -
Add a
constness
field toast::TraitRef
This is used for both the `?const` syntax in bounds as well as the `impl const Trait` syntax. I also considered handling these separately by adding a variant of `TraitBoundModifier` and a field to `ItemKind::Impl`, but this approach was less intrusive.
Configuration menu - View commit details
-
Copy full SHA for fd4a6a1 - Browse repository at this point
Copy the full SHA fd4a6a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c3fe9d - Browse repository at this point
Copy the full SHA 1c3fe9dView commit details -
Parse
?const Trait
bound syntaxThe grammar also handles `?const ?Trait` even though this is semantically redundant.
Configuration menu - View commit details
-
Copy full SHA for 0cf52a7 - Browse repository at this point
Copy the full SHA 0cf52a7View commit details -
Error when new syntax is lowered
This means the new syntax will always fail to compile, even when the feature gate is enabled. These checks will be removed in a later PR once the implementation is done.
Configuration menu - View commit details
-
Copy full SHA for b390fc4 - Browse repository at this point
Copy the full SHA b390fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31edbe9 - Browse repository at this point
Copy the full SHA 31edbe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d843e00 - Browse repository at this point
Copy the full SHA d843e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 343e157 - Browse repository at this point
Copy the full SHA 343e157View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6b11f0 - Browse repository at this point
Copy the full SHA b6b11f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9950a1f - Browse repository at this point
Copy the full SHA 9950a1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14730ed - Browse repository at this point
Copy the full SHA 14730edView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd1c003 - Browse repository at this point
Copy the full SHA fd1c003View 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.