File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ contains some APIs that may be useful more generally.
3939 procedural macros enable only what they need, and do not pay in compile time
4040 for all the rest.
4141
42- [ `syn::File` ] : https://docs.rs/syn/1 .0/syn/struct.File.html
43- [ `syn::Item` ] : https://docs.rs/syn/1 .0/syn/enum.Item.html
44- [ `syn::Expr` ] : https://docs.rs/syn/1 .0/syn/enum.Expr.html
45- [ `syn::Type` ] : https://docs.rs/syn/1 .0/syn/enum.Type.html
46- [ `syn::DeriveInput` ] : https://docs.rs/syn/1 .0/syn/struct.DeriveInput.html
47- [ parser functions ] : https://docs.rs/syn/1 .0/syn/parse/index.html
42+ [ `syn::File` ] : https://docs.rs/syn/2 .0/syn/struct.File.html
43+ [ `syn::Item` ] : https://docs.rs/syn/2 .0/syn/enum.Item.html
44+ [ `syn::Expr` ] : https://docs.rs/syn/2 .0/syn/enum.Expr.html
45+ [ `syn::Type` ] : https://docs.rs/syn/2 .0/syn/enum.Type.html
46+ [ `syn::DeriveInput` ] : https://docs.rs/syn/2 .0/syn/struct.DeriveInput.html
47+ [ parser functions ] : https://docs.rs/syn/2 .0/syn/parse/index.html
4848
4949* Version requirement: Syn supports rustc 1.56 and up.*
5050
Original file line number Diff line number Diff line change 4242The procedural macro uses a syntax tree [ ` Fold ` ] to rewrite every ` let `
4343statement and assignment expression in the following way:
4444
45- [ `Fold` ] : https://docs.rs/syn/1 .0/syn/fold/trait.Fold.html
45+ [ `Fold` ] : https://docs.rs/syn/2 .0/syn/fold/trait.Fold.html
4646
4747``` rust
4848// Before
Original file line number Diff line number Diff line change 1313//! of the [`visit`], [`visit_mut`], and [`fold`] modules can be generated
1414//! programmatically from a description of the syntax tree.
1515//!
16- //! [`visit`]: https://docs.rs/syn/1 .0/syn/visit/index.html
17- //! [`visit_mut`]: https://docs.rs/syn/1 .0/syn/visit_mut/index.html
18- //! [`fold`]: https://docs.rs/syn/1 .0/syn/fold/index.html
16+ //! [`visit`]: https://docs.rs/syn/2 .0/syn/visit/index.html
17+ //! [`visit_mut`]: https://docs.rs/syn/2 .0/syn/visit_mut/index.html
18+ //! [`fold`]: https://docs.rs/syn/2 .0/syn/fold/index.html
1919//!
2020//! To make this type of code as easy as possible to implement in any language,
2121//! every Syn release comes with a machine-readable description of that version
You can’t perform that action at this time.
0 commit comments