diff options
| author | bors <bors@rust-lang.org> | 2018-07-07 22:47:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-07 22:47:23 +0000 |
| commit | 5f2b325f64ed6caa7179f3e04913db437656ec7e (patch) | |
| tree | 3164d0f3404c27934ca8ae261b0c21a52ce10495 /src/librustdoc | |
| parent | 3eda71b00ad48d7bf4eef4c443e7f611fd061418 (diff) | |
| parent | fdbe5b4fa1de5036a45de474f60d417d1f5e4a05 (diff) | |
| download | rust-1.27.1.tar.gz rust-1.27.1.zip | |
Auto merge of #52134 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.27.1
Stable release 1.27.1 r? @alexcrichton
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 059d4169895..19bfc74063e 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -681,8 +681,14 @@ where R: 'static + Send, } } + if !plugins.is_empty() && plugin_path.is_none() { + eprintln!("ERROR: You must pass --plugin-path to use --plugins"); + std::process::exit(1); + } + + // Load all plugins/passes into a PluginManager - let path = plugin_path.unwrap_or("/tmp/rustdoc/plugins".to_string()); + let path = plugin_path.unwrap_or("/usr/lib64/rustdoc/plugins".to_string()); let mut pm = plugins::PluginManager::new(PathBuf::from(path)); for pass in &passes { let plugin = match passes::PASSES.iter() |
