-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add const generics to the AST #58191
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @petrochenkov (r=me after all concerns are dealt with) |
This comment has been minimized.
This comment has been minimized.
25b1b35
to
2299fdb
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #58061) made this pull request unmergeable. Please resolve the merge conflicts. |
557bd4f
to
b534cf9
Compare
Reviewed. |
☔ The latest upstream changes (presumably #58125) made this pull request unmergeable. Please resolve the merge conflicts. |
9f432b6
to
8af5ccd
Compare
This comment has been minimized.
This comment has been minimized.
⌛ Testing commit f2fe71c with merge 8716dd57aa1479389df1fda43caeb7d1eb1ae600... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry p=88 |
Add const generics to the AST This is mostly split out from #53645 in an effort to make progress merging const generics piecewise instead of in one go. cc @yodaldevoid, @petrochenkov r? @eddyb
☀️ Test successful - checks-travis, status-appveyor |
Fix failing build (adding new Hir::Def type ConstParam) solves: #3749 related with: - https://travis-ci.com/rust-lang/rust-clippy/jobs/176480646 - rust-lang/rust#58191 - rust-lang/rust@29f7206#diff-c1e317a81486d937bbfc6edca1dee92aR55
Generic param order restriction was changed in rust-lang/rust#58191. Generic argument order restriction was changed in rust-lang/rust#70261. `for` lifetime argument restriction was changed in rust-lang/rust#48326. Generic parameter parsing: https://github.com/rust-lang/rust/blob/206ee1eea3467fd1d7f1efdbeafe27880897bb2c/compiler/rustc_parse/src/parser/generics.rs#L83-L153 Generic argument parsing: https://github.com/rust-lang/rust/blob/17eec1433c69972844dd228b5fe801f218e118c3/compiler/rustc_parse/src/parser/path.rs#L395-L413 `for` argument parsing: https://github.com/rust-lang/rust/blob/206ee1eea3467fd1d7f1efdbeafe27880897bb2c/compiler/rustc_parse/src/parser/ty.rs#L724-L736 Fixes rust-lang#785
Generic param order restriction was changed in rust-lang/rust#58191. Generic argument order restriction was changed in rust-lang/rust#70261. `for` lifetime argument restriction was changed in rust-lang/rust#48326. Generic parameter parsing: https://github.com/rust-lang/rust/blob/206ee1eea3467fd1d7f1efdbeafe27880897bb2c/compiler/rustc_parse/src/parser/generics.rs#L83-L153 Generic argument parsing: https://github.com/rust-lang/rust/blob/17eec1433c69972844dd228b5fe801f218e118c3/compiler/rustc_parse/src/parser/path.rs#L395-L413 `for` argument parsing: https://github.com/rust-lang/rust/blob/206ee1eea3467fd1d7f1efdbeafe27880897bb2c/compiler/rustc_parse/src/parser/ty.rs#L724-L736 Fixes rust-lang#785
This is mostly split out from #53645 in an effort to make progress merging const generics piecewise instead of in one go. This work is a collaborative effort with @yodaldevoid.
cc @petrochenkov
r? @eddyb