third_party_rust_syn/codegen
David Tolnay d1028a2ef2
Bump codegen to rustfmt built with nightly-2021-04-26
The previously used rustfmt commit only builds with an old version of
1.52-dev, and that one is missing trait bounds on const fn.

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/mutex.rs:143:6
        |
    143 | impl<R: RawMutex, T> Mutex<R, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/remutex.rs:224:6
        |
    224 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/remutex.rs:224:19
        |
    224 | impl<R: RawMutex, G: GetThreadId, T> ReentrantMutex<R, G, T> {
        |                   ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable

    error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
       --> .cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.4/src/rwlock.rs:348:6
        |
    348 | impl<R: RawRwLock, T> RwLock<R, T> {
        |      ^
        = help: add `#![feature(const_fn)]` to the crate attributes to enable
2021-04-30 19:35:28 -07:00
..
src Do nonexhaustive detection based on doc(hidden) attribute 2021-01-24 00:12:58 -08:00
Cargo.toml Bump codegen to rustfmt built with nightly-2021-04-26 2021-04-30 19:35:28 -07:00
README.md Briefer ast traversal trait names 2018-01-06 13:48:05 -08:00
rust-toolchain Bump codegen to rustfmt built with nightly-2021-04-26 2021-04-30 19:35:28 -07:00

syn_codegen

This is an internal (not published on crates.io) crate which is used to generate the files in the gen/ directory of syn. It is used to ensure that the implementations for Fold, Visit, and VisitMut remain in sync with the actual AST.

To run this program, run cargo run in this directory, and the gen/ folder will be re-generated.

This program is slow, and is therefore not run when building syn as part of the build script to save on compile time.