@@ -52,9 +52,6 @@ enum QueryModifier {
52
52
/// Don't force the query
53
53
NoForce ,
54
54
55
- /// Generate a dep node based on the dependencies of the query
56
- Anon ,
57
-
58
55
// Always evaluate the query, ignoring its depdendencies
59
56
EvalAlways ,
60
57
}
@@ -110,8 +107,6 @@ impl Parse for QueryModifier {
110
107
Ok ( QueryModifier :: NoHash )
111
108
} else if modifier == "no_force" {
112
109
Ok ( QueryModifier :: NoForce )
113
- } else if modifier == "anon" {
114
- Ok ( QueryModifier :: Anon )
115
110
} else if modifier == "eval_always" {
116
111
Ok ( QueryModifier :: EvalAlways )
117
112
} else {
@@ -221,9 +216,6 @@ struct QueryModifiers {
221
216
/// Don't force the query
222
217
no_force : bool ,
223
218
224
- /// Generate a dep node based on the dependencies of the query
225
- anon : bool ,
226
-
227
219
// Always evaluate the query, ignoring its depdendencies
228
220
eval_always : bool ,
229
221
}
@@ -237,7 +229,6 @@ fn process_modifiers(query: &mut Query) -> QueryModifiers {
237
229
let mut cycle_delay_bug = false ;
238
230
let mut no_hash = false ;
239
231
let mut no_force = false ;
240
- let mut anon = false ;
241
232
let mut eval_always = false ;
242
233
for modifier in query. modifiers . 0 . drain ( ..) {
243
234
match modifier {
@@ -283,12 +274,6 @@ fn process_modifiers(query: &mut Query) -> QueryModifiers {
283
274
}
284
275
no_force = true ;
285
276
}
286
- QueryModifier :: Anon => {
287
- if anon {
288
- panic ! ( "duplicate modifier `anon` for query `{}`" , query. name) ;
289
- }
290
- anon = true ;
291
- }
292
277
QueryModifier :: EvalAlways => {
293
278
if eval_always {
294
279
panic ! ( "duplicate modifier `eval_always` for query `{}`" , query. name) ;
@@ -305,7 +290,6 @@ fn process_modifiers(query: &mut Query) -> QueryModifiers {
305
290
cycle_delay_bug,
306
291
no_hash,
307
292
no_force,
308
- anon,
309
293
eval_always,
310
294
}
311
295
}
@@ -437,10 +421,6 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
437
421
438
422
let mut attributes = Vec :: new ( ) ;
439
423
440
- // Pass on the anon modifier
441
- if modifiers. anon {
442
- attributes. push ( quote ! { anon } ) ;
443
- } ;
444
424
// Pass on the eval_always modifier
445
425
if modifiers. eval_always {
446
426
attributes. push ( quote ! { eval_always } ) ;
0 commit comments