aboutsummaryrefslogtreecommitdiff
path: root/src/generics.rs
AgeCommit message (Collapse)Author
2021-09-22Upgrade rust/crates/syn to 1.0.76Joel Galenson
Test: make Change-Id: I3d70045650583338a138bd734110cbd8229a67c2
2021-05-19Upgrade rust/crates/syn to 1.0.72Joel Galenson
Test: make Change-Id: Ie700357fdff8bb1a8c760adb67274f6b91c42eb3
2021-04-13Upgrade rust/crates/syn to 1.0.69Joel Galenson
Test: make Change-Id: I4cf57cc3c7cd58a2fda04414b95edb58590c162b
2021-01-05Upgrade rust/crates/syn to 1.0.58Haibo Huang
Test: make Change-Id: Ie9cd9adfad50922610eabc0714e0f0eb76b9ff39
2020-10-26Upgrade rust/crates/syn to 1.0.48Chih-Hung Hsieh
Test: make Change-Id: I4da37029dfd0e5bc433e10ddfc1aa8dd2566af18
2020-09-08Upgrade rust/crates/syn to 1.0.40Haibo Huang
Test: make Change-Id: I1cc16d202dd0622ab5c646fbcd80cc7bf436f258
2020-05-26Upgrade rust/crates/syn to 1.0.27Haibo Huang
Test: None Change-Id: I9a596685c4b3070eff8a5084ba6bed07e0950e04
2020-03-20Update to latest syn-1.0.16Chih-Hung Hsieh
* fill back missing NOTICE,METADATA,*LICENSE* files Bug: 150877376 Test: make Test: atest --host -c --include-subdirs external/rust/crates Change-Id: Ib5df6b8fb97764214e701a888e44fab3a4245800
2020-03-19Remove old 0.15.42; used only by old crosvm.Chih-Hung Hsieh
* 1.0.7 becomes the default Test: make Bug: 151628085 Change-Id: Iad2f9c69b43d0bbf66fadce54078b11e98cc582e
2019-11-05Add latest 1.0.7, prepare to upgrade.Chih-Hung Hsieh
* Move current to 0.15.42; add missing .cargo_vc_info.json. * Default libsyn is now 0.15.42 for current dependent crates. * Later we can switch to default 1.0.7 and add new crates that need newer syn. Old crates will need to specify libsyn-0.15.42. * Keeping multiple versions when necessary under one directory and each with its own version number seems to be easier to add/upgrade/switch to new versions. Bug: 143477201 Test: mm in all rust projects Change-Id: I6e50de6dd8cc31dcd4371e79c84ed6927f925270
2019-07-23Accept empty bound list at end of inputDavid Tolnay
Necessary for: let mut predicate: WherePredicate = parse_quote!(#ty:); // conditionally add bounds
2019-07-20Switch to intra rustdoc linksDavid Tolnay
2019-05-25Implement parsing const generic paramsDavid Tolnay
pub struct VSet<T, const ORDER: Order> {
2019-01-01Remove unneeded extern crates in documentation examplesDavid Tolnay
2019-01-01Set all documentation examples to 2018 editionDavid Tolnay
2018-12-31Update example code to 2018 editionDavid Tolnay
2018-11-24Copyright/license headersDavid Tolnay
The following changes are included: - Delete per-file license notices at the top of each file. - Delete the first paragraph of LICENSE-MIT (an inaccurate pseudo-copyright line), leaving only the text of the MIT license. Nothing about the license of Syn code has changed, only our understanding of how to correctly communicate that license has changed. This mirrors an equivalent change being applied in the rust-lang/rust repository.
2018-10-27Format with rustfmt 0.99.6-nightlyDavid Tolnay
2018-10-27Parse impl qpathDavid Tolnay
2018-10-27Allow trailing plus on type parameter with defaultDavid Tolnay
2018-09-06Make doc examples compatible with stableDavid Tolnay
2018-09-02Allow where-clause to end at end of inputDavid Tolnay
2018-09-01Remove macro_use and extern crate in doc testsDavid Tolnay
2018-08-31Move TokensOrDefault out of rootDavid Tolnay
2018-08-31Lifetimes as single tokens from cursorDavid Tolnay
2018-08-30Remove parse_synom shimDavid Tolnay
2018-08-27Begin Parse impls for expressionsDavid Tolnay
2018-08-26Parse typesDavid Tolnay
2018-08-26Remove distracting fixmesDavid Tolnay
2018-08-26Parse genericsDavid Tolnay
2018-08-25Give new signature the desirable nameDavid Tolnay
2018-08-24Move spans of tokens to a named fieldDavid Tolnay
2018-06-28Fix clippy lintsDavid Tolnay
2018-05-20Format with rustfmt 0.7.0David Tolnay
2018-05-20Preserve syn::Ident as a re-exportDavid Tolnay
2018-05-17Fix doctests and macrosAlex Crichton
2018-05-17Update to the next version of proc-macro2Alex Crichton
Depends on dtolnay/quote#73 Depends on alexcrichton/proc-macro2#90 Depends on a new nightly
2018-04-29Format with rustfmt 0.4.2David Tolnay
2018-04-01Add helper Generics::make_where_clauseDavid Tolnay
2018-03-31Fix when Paren has no Copy implDavid Tolnay
2018-03-31Capture parens in trait boundDavid Tolnay
2018-03-31Eliminate the second type parameter of punctuated itersDavid Tolnay
2018-03-09Avoid printing 'where' keyword in empty where-clauseDavid Tolnay
A 'where' keyword with an empty where-clause is not supported before Rust 1.16. struct S where {} Do some convenient legalization by omitting the 'where' keyword if there are no predicates in the where-clause. If the user really wants the WhereClause printed faithfully they can print 'where_token' and 'predicates' themselves directly.
2018-01-17Link to the Generics iterator element typesDavid Tolnay
2018-01-16Add helpful accessors to GenericsSean Griffin
NOTE: This PR is not yet ready to be merged. This adds only one of the three needed accessors, and has no tests. I wanted to make sure that this was a feature that would be accepted before spending the time to finish this. Within Diesel we have a bunch of places that do things like `generics.params.iter()`. It'd be very helpful for syn to provide these iterators for us. This PR as written only contains the iterator for `type_params` (holy crap I hate that name can we please rename `TypeParam` to `TypeParameter`). The other iterators will be mechanically identical. If you're good with this feature I will implement the remaining iterators and add tests.
2018-01-11No longer need empty_normal_generics helperDavid Tolnay
2018-01-11Print ImplGenerics and TypeGenerics in same order as GenericsDavid Tolnay
2018-01-11Print generic params and generic arguments in the right orderDavid Tolnay
2018-01-07Add Synom for GenericParamDavid Tolnay
2018-01-07Document what feature everything requiresDavid Tolnay