@@ -140,7 +140,6 @@ struct CacheOnDiskIf {
140140/// See `rustc_middle::query::modifiers` for documentation of each query modifier.
141141struct QueryModifiers {
142142 // tidy-alphabetical-start
143- anon : Option < Ident > ,
144143 arena_cache : Option < Ident > ,
145144 cache_on_disk_if : Option < CacheOnDiskIf > ,
146145 depth_limit : Option < Ident > ,
@@ -159,7 +158,6 @@ fn parse_query_modifiers(input: ParseStream<'_>) -> Result<QueryModifiers> {
159158 let mut desc = None ;
160159 let mut no_force = None ;
161160 let mut no_hash = None ;
162- let mut anon = None ;
163161 let mut eval_always = None ;
164162 let mut depth_limit = None ;
165163 let mut separate_provide_extern = None ;
@@ -195,8 +193,6 @@ fn parse_query_modifiers(input: ParseStream<'_>) -> Result<QueryModifiers> {
195193 try_insert ! ( no_force = modifier) ;
196194 } else if modifier == "no_hash" {
197195 try_insert ! ( no_hash = modifier) ;
198- } else if modifier == "anon" {
199- try_insert ! ( anon = modifier) ;
200196 } else if modifier == "eval_always" {
201197 try_insert ! ( eval_always = modifier) ;
202198 } else if modifier == "depth_limit" {
@@ -218,7 +214,6 @@ fn parse_query_modifiers(input: ParseStream<'_>) -> Result<QueryModifiers> {
218214 desc,
219215 no_force,
220216 no_hash,
221- anon,
222217 eval_always,
223218 depth_limit,
224219 separate_provide_extern,
@@ -248,7 +243,6 @@ fn returns_error_guaranteed(ret_ty: &ReturnType) -> bool {
248243fn make_modifiers_stream ( query : & Query ) -> proc_macro2:: TokenStream {
249244 let QueryModifiers {
250245 // tidy-alphabetical-start
251- anon,
252246 arena_cache,
253247 cache_on_disk_if,
254248 depth_limit,
@@ -261,7 +255,6 @@ fn make_modifiers_stream(query: &Query) -> proc_macro2::TokenStream {
261255 // tidy-alphabetical-end
262256 } = & query. modifiers ;
263257
264- let anon = anon. is_some ( ) ;
265258 let arena_cache = arena_cache. is_some ( ) ;
266259 let cache_on_disk = cache_on_disk_if. is_some ( ) ;
267260 let depth_limit = depth_limit. is_some ( ) ;
@@ -280,7 +273,6 @@ fn make_modifiers_stream(query: &Query) -> proc_macro2::TokenStream {
280273 query_name_span =>
281274 // Search for (QMODLIST) to find all occurrences of this query modifier list.
282275 // tidy-alphabetical-start
283- anon: #anon,
284276 arena_cache: #arena_cache,
285277 cache_on_disk: #cache_on_disk,
286278 depth_limit: #depth_limit,
@@ -396,7 +388,6 @@ fn add_to_analyzer_stream(query: &Query, analyzer_stream: &mut proc_macro2::Toke
396388
397389 doc_link ! (
398390 // tidy-alphabetical-start
399- anon,
400391 arena_cache,
401392 depth_limit,
402393 eval_always,
@@ -487,11 +478,6 @@ pub(super) fn rustc_queries(input: TokenStream) -> TokenStream {
487478 } ) ;
488479
489480 if let Some ( feedable) = & modifiers. feedable {
490- assert ! (
491- modifiers. anon. is_none( ) ,
492- feedable. span( ) ,
493- "Query {name} cannot be both `feedable` and `anon`."
494- ) ;
495481 assert ! (
496482 modifiers. eval_always. is_none( ) ,
497483 feedable. span( ) ,
0 commit comments