]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/lib.rs
Fix es-check
[rust.git] / src / librustdoc / lib.rs
index 6d34f484754c7a6c2c60d85b3ac9c0ca1e740b5e..e27af61051c4f9dde54305cc0ee6cc9c7e29b972 100644 (file)
@@ -774,6 +774,7 @@ fn main_args(at_args: &[String]) -> MainResult {
     let output_format = options.output_format;
     let externs = options.externs.clone();
     let scrape_examples_options = options.scrape_examples_options.clone();
+    let crate_types = options.crate_types.clone();
 
     let config = core::create_config(options);
 
@@ -832,7 +833,14 @@ fn main_args(at_args: &[String]) -> MainResult {
                 info!("finished with rustc");
 
                 if let Some(options) = scrape_examples_options {
-                    return scrape_examples::run(krate, render_opts, cache, tcx, options);
+                    return scrape_examples::run(
+                        krate,
+                        render_opts,
+                        cache,
+                        tcx,
+                        options,
+                        crate_types,
+                    );
                 }
 
                 cache.crate_version = crate_version;