Skip to content

Commit 92abb89

Browse files
committed
Update syn 1.0 links to syn 2.0
1 parent b2ea704 commit 92abb89

14 files changed

+17
-18
lines changed

builder/tests/01-parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// https://github.com/dtolnay/syn
1717
//
1818
// - The DeriveInput syntax tree which represents input of a derive macro:
19-
// https://docs.rs/syn/1.0/syn/struct.DeriveInput.html
19+
// https://docs.rs/syn/2.0/syn/struct.DeriveInput.html
2020
//
2121
// - An example of a derive macro implemented using Syn:
2222
// https://github.com/dtolnay/syn/tree/master/examples/heapsize

builder/tests/02-create-builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// https://github.com/dtolnay/quote
4141
//
4242
// - Joining together the type name + "Builder" to make the builder's name:
43-
// https://docs.rs/syn/1.0/syn/struct.Ident.html
43+
// https://docs.rs/syn/2.0/syn/struct.Ident.html
4444

4545
use derive_builder::Builder;
4646

builder/tests/07-repeated-field.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
// Resources:
2727
//
28-
// - Relevant syntax tree types:
28+
// - Relevant syntax tree type:
2929
// https://docs.rs/syn/2.0/syn/struct.Attribute.html
3030

3131
use derive_builder::Builder;

builder/tests/08-unrecognized-attribute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// https://doc.rust-lang.org/std/macro.compile_error.html
1313
//
1414
// - Lowering a syn::Error into an invocation of compile_error:
15-
// https://docs.rs/syn/1.0/syn/struct.Error.html#method.to_compile_error
15+
// https://docs.rs/syn/2.0/syn/struct.Error.html#method.to_compile_error
1616

1717
use derive_builder::Builder;
1818

debug/tests/01-parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Resources:
1010
//
1111
// - The DeriveInput syntax tree which represents input of a derive macro:
12-
// https://docs.rs/syn/1.0/syn/struct.DeriveInput.html
12+
// https://docs.rs/syn/2.0/syn/struct.DeriveInput.html
1313
//
1414
// - An example of a derive macro implemented using Syn:
1515
// https://github.com/dtolnay/syn/tree/master/examples/heapsize

debug/tests/03-custom-format.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
//
1616
// Resources:
1717
//
18-
// - Relevant syntax tree types:
19-
// https://docs.rs/syn/1.0/syn/struct.Attribute.html
20-
// https://docs.rs/syn/1.0/syn/enum.Meta.html
18+
// - Relevant syntax tree type:
19+
// https://docs.rs/syn/2.0/syn/struct.Attribute.html
2120
//
2221
// - Macro for applying a format string to some runtime value:
2322
// https://doc.rust-lang.org/std/macro.format_args.html

debug/tests/04-type-parameter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
// Resources:
1111
//
1212
// - Representation of generics in the Syn syntax tree:
13-
// https://docs.rs/syn/1.0/syn/struct.Generics.html
13+
// https://docs.rs/syn/2.0/syn/struct.Generics.html
1414
//
1515
// - A helper for placing generics into an impl signature:
16-
// https://docs.rs/syn/1.0/syn/struct.Generics.html#method.split_for_impl
16+
// https://docs.rs/syn/2.0/syn/struct.Generics.html#method.split_for_impl
1717
//
1818
// - Example code from Syn which deals with type parameters:
1919
// https://github.com/dtolnay/syn/tree/master/examples/heapsize

debug/tests/07-associated-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// Resources:
1818
//
1919
// - The relevant types in the input will be represented in this syntax tree
20-
// node: https://docs.rs/syn/1.0/syn/struct.TypePath.html
20+
// node: https://docs.rs/syn/2.0/syn/struct.TypePath.html
2121

2222
use derive_debug::CustomDebug;
2323
use std::fmt::Debug;

seq/tests/01-parse-header.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Resources:
1616
//
1717
// - Parsing in Syn:
18-
// https://docs.rs/syn/1.0/syn/parse/index.html
18+
// https://docs.rs/syn/2.0/syn/parse/index.html
1919
//
2020
// - An example of a function-like procedural macro implemented using Syn:
2121
// https://github.com/dtolnay/syn/tree/master/examples/lazy-static

seq/tests/04-paste-ident.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// Resources:
1919
//
2020
// - Example of creating a new Ident from a string:
21-
// https://docs.rs/syn/1.0/syn/struct.Ident.html
21+
// https://docs.rs/syn/2.0/syn/struct.Ident.html
2222

2323
use seq::seq;
2424

sorted/tests/01-parse-enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// https://github.com/dtolnay/syn
2727
//
2828
// - The syn::Item type which represents a parsed enum as a syntax tree:
29-
// https://docs.rs/syn/1.0/syn/enum.Item.html
29+
// https://docs.rs/syn/2.0/syn/enum.Item.html
3030

3131
use sorted::sorted;
3232

sorted/tests/02-not-enum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// Resources
2525
//
2626
// - The syn::Error type:
27-
// https://docs.rs/syn/1.0/syn/struct.Error.html
27+
// https://docs.rs/syn/2.0/syn/struct.Error.html
2828

2929
use sorted::sorted;
3030

sorted/tests/05-match-expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
// Resources:
6262
//
6363
// - The VisitMut trait to iterate and mutate a syntax tree:
64-
// https://docs.rs/syn/1.0/syn/visit_mut/trait.VisitMut.html
64+
// https://docs.rs/syn/2.0/syn/visit_mut/trait.VisitMut.html
6565
//
6666
// - The ExprMatch struct:
67-
// https://docs.rs/syn/1.0/syn/struct.ExprMatch.html
67+
// https://docs.rs/syn/2.0/syn/struct.ExprMatch.html
6868

6969
use sorted::sorted;
7070

sorted/tests/06-pattern-path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Resources:
1212
//
1313
// - The syn::Pat syntax tree which forms the left hand side of a match arm:
14-
// https://docs.rs/syn/1.0/syn/enum.Pat.html
14+
// https://docs.rs/syn/2.0/syn/enum.Pat.html
1515

1616
use sorted::sorted;
1717

0 commit comments

Comments
 (0)