-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[Syntax] Implement auto trait syntax #45247
Commits on Nov 3, 2017
-
[Syntax Breaking] Rename DefaultImpl to AutoImpl
DefaultImpl is a highly confusing name for what we now call auto impls, as in `impl Send for ..`. The name auto impl is not formally decided but for sanity anything is better than `DefaultImpl` which refers neither to `default impl` nor to `impl Default`.
Configuration menu - View commit details
-
Copy full SHA for 06506bb - Browse repository at this point
Copy the full SHA 06506bbView commit details -
add
auto
keyword, parseauto trait
, lower to HIRAdds an `IsAuto` field to `ItemTrait` which flags if the trait was declared as an `auto trait`. Auto traits cannot have generics nor super traits.
Configuration menu - View commit details
-
Copy full SHA for 1f4b630 - Browse repository at this point
Copy the full SHA 1f4b630View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00be060 - Browse repository at this point
Copy the full SHA 00be060View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37dfc0c - Browse repository at this point
Copy the full SHA 37dfc0cView commit details -
Add tests for
auto trait
, fix parsing bugNow we can do the well formedness checks in the parser, yay!
Configuration menu - View commit details
-
Copy full SHA for acf50ee - Browse repository at this point
Copy the full SHA acf50eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d1b79a - Browse repository at this point
Copy the full SHA 0d1b79aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b586e6 - Browse repository at this point
Copy the full SHA 8b586e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d181ac - Browse repository at this point
Copy the full SHA 9d181acView commit details -
Parse auto traits the same as traits.
This moves the well formedness checks to the AST validation pass. Tests were adjusted. The auto keyword should be back-compat now.
Configuration menu - View commit details
-
Copy full SHA for 97de8ca - Browse repository at this point
Copy the full SHA 97de8caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b07a9 - Browse repository at this point
Copy the full SHA 94b07a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27efe12 - Browse repository at this point
Copy the full SHA 27efe12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e74353 - Browse repository at this point
Copy the full SHA 5e74353View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3241f45 - Browse repository at this point
Copy the full SHA 3241f45View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca26f01 - Browse repository at this point
Copy the full SHA ca26f01View commit details -
Fix unsafe auto trait pretty print.
It was being printed wrong as auto unsafe trait
Configuration menu - View commit details
-
Copy full SHA for 5190abb - Browse repository at this point
Copy the full SHA 5190abbView commit details