diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-19 23:10:09 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-23 00:57:29 +0200 |
| commit | f8b8cc4cceda39ec2c0a933fd1ba4b9951401862 (patch) | |
| tree | 2da2dcab650df38c365eb31c5dd85a80e69fcf66 /src/librustdoc/scrape_examples.rs | |
| parent | ab000e15e1c6fd571882ebd0852ee39fabe6820d (diff) | |
| download | rust-f8b8cc4cceda39ec2c0a933fd1ba4b9951401862.tar.gz rust-f8b8cc4cceda39ec2c0a933fd1ba4b9951401862.zip | |
Do macro expansion at AST level rather than HIR
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
| -rw-r--r-- | src/librustdoc/scrape_examples.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs index 9f71d6ae789..16034c11827 100644 --- a/src/librustdoc/scrape_examples.rs +++ b/src/librustdoc/scrape_examples.rs @@ -18,7 +18,6 @@ use rustc_span::edition::Edition; use rustc_span::{BytePos, FileName, SourceFile}; use tracing::{debug, trace, warn}; -use crate::formats::renderer::FormatRenderer; use crate::html::render::Context; use crate::{clean, config, formats}; @@ -276,7 +275,8 @@ pub(crate) fn run( let inner = move || -> Result<(), String> { // Generates source files for examples renderopts.no_emit_shared = true; - let (cx, _) = Context::init(krate, renderopts, cache, tcx).map_err(|e| e.to_string())?; + let (cx, _) = Context::init(krate, renderopts, cache, tcx, Default::default()) + .map_err(|e| e.to_string())?; // Collect CrateIds corresponding to provided target crates // If two different versions of the crate in the dependency tree, then examples will be |
