third_party_rust_syn/codegen
David Tolnay 17332d952a
Bump codegen build to newer rustfmt commit
The previously used rustfmt commit only builds with an early version of
1.51-dev, and that one is missing addr_of.

    error[E0433]: failed to resolve: could not find `addr_of` in `ptr`
       --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/error.rs:606:14
        |
    606 |         ptr::addr_of!((*unerased.as_ptr())._object) as *mut E,
        |              ^^^^^^^ could not find `addr_of` in `ptr`

    error[E0433]: failed to resolve: could not find `addr_of` in `ptr`
       --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/anyhow-1.0.40/src/error.rs:647:22
        |
    647 |                 ptr::addr_of!((*unerased.as_ptr())._object) as *mut E,
        |                      ^^^^^^^ could not find `addr_of` in `ptr`
2021-03-26 13:52:16 -04:00
..
src Do nonexhaustive detection based on doc(hidden) attribute 2021-01-24 00:12:58 -08:00
Cargo.toml Bump codegen build to newer rustfmt commit 2021-03-26 13:52:16 -04:00
README.md Briefer ast traversal trait names 2018-01-06 13:48:05 -08:00
rust-toolchain Bump codegen build to newer rustfmt commit 2021-03-26 13:52:16 -04: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.