@@ -31,7 +31,6 @@ use crate::clean::inline::build_trait;
3131use crate :: clean:: { self , ItemId } ;
3232use crate :: config:: { Options as RustdocOptions , OutputFormat , RenderOptions } ;
3333use crate :: formats:: cache:: Cache ;
34- use crate :: html:: macro_expansion:: { ExpandedCode , source_macro_expansion} ;
3534use crate :: passes;
3635use crate :: passes:: Condition :: * ;
3736use crate :: passes:: collect_intra_doc_links:: LinkCollector ;
@@ -335,19 +334,11 @@ pub(crate) fn run_global_ctxt(
335334 show_coverage : bool ,
336335 render_options : RenderOptions ,
337336 output_format : OutputFormat ,
338- ) -> ( clean:: Crate , RenderOptions , Cache , FxHashMap < rustc_span :: BytePos , Vec < ExpandedCode > > ) {
337+ ) -> ( clean:: Crate , RenderOptions , Cache ) {
339338 // Certain queries assume that some checks were run elsewhere
340339 // (see https://github.com/rust-lang/rust/pull/73566#issuecomment-656954425),
341340 // so type-check everything other than function bodies in this crate before running lints.
342341
343- let expanded_macros = {
344- // We need for these variables to be removed to ensure that the `Crate` won't be "stolen"
345- // anymore.
346- let ( _resolver, krate) = & * tcx. resolver_for_lowering ( ) . borrow ( ) ;
347-
348- source_macro_expansion ( & krate, & render_options, output_format, tcx. sess . source_map ( ) )
349- } ;
350-
351342 // NOTE: this does not call `tcx.analysis()` so that we won't
352343 // typeck function bodies or run the default rustc lints.
353344 // (see `override_queries` in the `config`)
@@ -457,7 +448,7 @@ pub(crate) fn run_global_ctxt(
457448
458449 tcx. dcx ( ) . abort_if_errors ( ) ;
459450
460- ( krate, ctxt. render_options , ctxt. cache , expanded_macros )
451+ ( krate, ctxt. render_options , ctxt. cache )
461452}
462453
463454/// Due to <https://github.com/rust-lang/rust/pull/73566>,
0 commit comments