File: fix-test-feature-gates.patch

package info (click to toggle)
rust-syn 2.0.105-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,552 kB
  • sloc: makefile: 2
file content (286 lines) | stat: -rw-r--r-- 7,164 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
diff --git a/Cargo.toml b/Cargo.toml
index 27e2f4b..4a466f3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -94,102 +94,127 @@ path = "src/lib.rs"
 [[test]]
 name = "regression"
 path = "tests/regression.rs"
+required-features = ["parsing", "full", "extra-traits"]
 
 [[test]]
 name = "test_asyncness"
 path = "tests/test_asyncness.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_attribute"
 path = "tests/test_attribute.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_derive_input"
 path = "tests/test_derive_input.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_expr"
 path = "tests/test_expr.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_generics"
 path = "tests/test_generics.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_grouping"
 path = "tests/test_grouping.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_ident"
 path = "tests/test_ident.rs"
+required-features = ["parsing"]
 
 [[test]]
 name = "test_item"
 path = "tests/test_item.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_iterators"
 path = "tests/test_iterators.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_lit"
 path = "tests/test_lit.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_meta"
 path = "tests/test_meta.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_parse_buffer"
 path = "tests/test_parse_buffer.rs"
+required-features = ["parsing"]
 
 [[test]]
 name = "test_parse_quote"
 path = "tests/test_parse_quote.rs"
+required-features = ["parsing"]
 
 [[test]]
 name = "test_parse_stream"
 path = "tests/test_parse_stream.rs"
+required-features = ["parsing"]
 
 [[test]]
 name = "test_pat"
 path = "tests/test_pat.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_path"
 path = "tests/test_path.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_receiver"
 path = "tests/test_receiver.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_shebang"
 path = "tests/test_shebang.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_size"
 path = "tests/test_size.rs"
+required-features = ["full"]
 
 [[test]]
 name = "test_stmt"
 path = "tests/test_stmt.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_token_trees"
 path = "tests/test_token_trees.rs"
+required-features = ["full", "derive"]
 
 [[test]]
 name = "test_ty"
 path = "tests/test_ty.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "test_unparenthesize"
 path = "tests/test_unparenthesize.rs"
+required-features = ["full", "visit-mut", "parsing", "derive"]
 
 [[test]]
 name = "test_visibility"
 path = "tests/test_visibility.rs"
+required-features = ["full", "extra-traits", "derive"]
 
 [[test]]
 name = "zzz_stable"
diff --git a/src/custom_keyword.rs b/src/custom_keyword.rs
index cc4f632..e9b76d5 100644
--- a/src/custom_keyword.rs
+++ b/src/custom_keyword.rs
@@ -43,7 +43,7 @@
 /// identifier that is not a keyword, these can be declared as custom keywords
 /// by crates that need to use them as such.
 ///
-/// ```
+/// ```ignore
 /// use syn::{LitBool, LitStr, Result, Token};
 /// use syn::parse::{Parse, ParseStream};
 ///
diff --git a/src/custom_punctuation.rs b/src/custom_punctuation.rs
index eef5f54..c0ea04a 100644
--- a/src/custom_punctuation.rs
+++ b/src/custom_punctuation.rs
@@ -29,7 +29,7 @@
 ///
 /// # Example
 ///
-/// ```
+/// ```ignore
 /// use proc_macro2::{TokenStream, TokenTree};
 /// use syn::parse::{Parse, ParseStream, Peek, Result};
 /// use syn::punctuated::Punctuated;
diff --git a/src/error.rs b/src/error.rs
index 6331054..0c92a40 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -29,7 +29,7 @@ pub type Result<T> = std::result::Result<T, Error>;
 ///
 /// [`parse_macro_input!`]: crate::parse_macro_input!
 ///
-/// ```
+/// ```ignore
 /// # extern crate proc_macro;
 /// #
 /// use proc_macro::TokenStream;
@@ -70,7 +70,7 @@ pub type Result<T> = std::result::Result<T, Error>;
 /// [`.to_compile_error()`]: Error::to_compile_error
 /// [`.into_compile_error()`]: Error::into_compile_error
 ///
-/// ```
+/// ```ignore
 /// # extern crate proc_macro;
 /// #
 /// # use proc_macro::TokenStream;
@@ -136,7 +136,7 @@ impl Error {
     ///
     /// # Example
     ///
-    /// ```
+    /// ```ignore
     /// use syn::{Error, Ident, LitStr, Result, Token};
     /// use syn::parse::ParseStream;
     ///
@@ -235,7 +235,7 @@ impl Error {
     ///
     /// # Example
     ///
-    /// ```
+    /// ```ignore
     /// # extern crate proc_macro;
     /// #
     /// use proc_macro::TokenStream;
diff --git a/src/lib.rs b/src/lib.rs
index 1d2ccc3..884488d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -69,7 +69,7 @@
 //! proc-macro = true
 //! ```
 //!
-//! ```
+//! ```ignore
 //! # extern crate proc_macro;
 //! #
 //! use proc_macro::TokenStream;
diff --git a/src/lit.rs b/src/lit.rs
index 45c26d5..0d844a6 100644
--- a/src/lit.rs
+++ b/src/lit.rs
@@ -438,7 +438,7 @@ impl LitInt {
     /// resulting errors will be correctly spanned to point to the literal token
     /// in the macro input.
     ///
-    /// ```
+    /// ```ignore
     /// use syn::LitInt;
     /// use syn::parse::{Parse, ParseStream, Result};
     ///
diff --git a/src/punctuated.rs b/src/punctuated.rs
index ebaaa94..b7c037f 100644
--- a/src/punctuated.rs
+++ b/src/punctuated.rs
@@ -990,7 +990,7 @@ impl<T, P> Pair<T, P> {
     ///
     /// # Example
     ///
-    /// ```
+    /// ```ignore
     /// # use proc_macro2::Span;
     /// # use syn::punctuated::Punctuated;
     /// # use syn::{parse_quote, Token, TypeParamBound};
diff --git a/src/token.rs b/src/token.rs
index 752c188..9a4216b 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -12,7 +12,7 @@
 //!
 //! [`ItemStatic`]: crate::ItemStatic
 //!
-//! ```
+//! ```ignore
 //! # use syn::{Attribute, Expr, Ident, Token, Type, Visibility};
 //! #
 //! pub struct ItemStatic {
@@ -40,7 +40,7 @@
 //! [`bracketed!`]: crate::bracketed!
 //! [`braced!`]: crate::braced!
 //!
-//! ```
+//! ```ignore
 //! use syn::{Attribute, Result};
 //! use syn::parse::{Parse, ParseStream};
 //! #
@@ -806,7 +806,7 @@ define_delimiters! {
 /// As a type, `Token!` is commonly used in the type of struct fields, the type
 /// of a `let` statement, or in turbofish for a `parse` function.
 ///
-/// ```
+/// ```ignore
 /// use syn::{Ident, Token};
 /// use syn::parse::{Parse, ParseStream, Result};
 ///
@@ -830,7 +830,7 @@ define_delimiters! {
 /// As an expression, `Token!` is used for peeking tokens or instantiating
 /// tokens from a span.
 ///
-/// ```
+/// ```ignore
 /// # use syn::{Ident, Token};
 /// # use syn::parse::{Parse, ParseStream, Result};
 /// #
diff --git a/tests/debug/gen.rs b/tests/debug/gen.rs
index d766a8e..8612e07 100644
--- a/tests/debug/gen.rs
+++ b/tests/debug/gen.rs
@@ -1,3 +1,4 @@
+#![cfg(any(feature = "full", feature = "derive"))]
 // This file is @generated by syn-internal-codegen.
 // It is not intended for manual editing.