@@ -364,9 +364,6 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
364364        ..Options :: default ( ) 
365365    } ; 
366366
367-     lazy_static !  { 
368-         static  ref EMPTY_MAP :  FxHashSet <LocalDefId > = FxHashSet :: default ( ) ; 
369-     } 
370367    let  config = interface:: Config  { 
371368        opts :  sessopts, 
372369        crate_cfg :  interface:: parse_cfgspecs ( cfgs) , 
@@ -381,12 +378,15 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
381378        lint_caps, 
382379        register_lints :  None , 
383380        override_queries :  Some ( |_sess,  local_providers,  external_providers| { 
381+             lazy_static !  { 
382+                 static  ref EMPTY_SET :  FxHashSet <LocalDefId > = FxHashSet :: default ( ) ; 
383+             } 
384384            // Most lints will require typechecking, so just don't run them. 
385385            local_providers. lint_mod  = |_,  _| { } ; 
386386            external_providers. lint_mod  = |_,  _| { } ; 
387387            local_providers. typeck_item_bodies  = |_,  _| { } ; 
388388            // hack so that `used_trait_imports` won't try to call typeck_tables_of 
389-             local_providers. used_trait_imports  = |_,  _| & EMPTY_MAP ; 
389+             local_providers. used_trait_imports  = |_,  _| & EMPTY_SET ; 
390390            // In case typeck does end up being called, don't ICE in case there were name resolution errors 
391391            local_providers. typeck_tables_of  = move  |tcx,  def_id| { 
392392                // Closures' tables come from their outermost function, 
0 commit comments