]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45930 - jplatte:generics_refactoring, r=eddyb
authorbors <bors@rust-lang.org>
Thu, 21 Dec 2017 20:12:13 +0000 (20:12 +0000)
committerbors <bors@rust-lang.org>
Thu, 21 Dec 2017 20:12:13 +0000 (20:12 +0000)
commit250b492052e94d76bd318a4b932159395da55981
treeaadee204c60a58ef29eb6ea544c84281727567d4
parentb7b52cc8bf2bcc4cbd223a4b61fe3e35e798f6e2
parent78493ed21aaeb20a8d5f7bd08f26c0c9fd496ed4
Auto merge of #45930 - jplatte:generics_refactoring, r=eddyb

Generics refactoring (groundwork for const generics)

These changes were suggested by @eddyb.

After this change, the `Generics` contain one `Vec` of an enum for the generic parameters, rather than two separate `Vec`s for lifetime and type parameters. Type params and const params will need to be in a shared `Vec` to preserve their ordering, and moving lifetimes into the same `Vec` should simplify the code that processes `Generics`.
src/libsyntax/ast.rs
src/libsyntax/parse/parser.rs