X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustdoc%2Flib.rs;h=e27af61051c4f9dde54305cc0ee6cc9c7e29b972;hb=bcdab876c823ef4e66f88e2716bd13d7a42634dd;hp=6d34f484754c7a6c2c60d85b3ac9c0ca1e740b5e;hpb=e1d819583f0bf13b016b119c1c2c43e6d3979450;p=rust.git diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 6d34f484754..e27af61051c 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -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;