Skip to content

Commit

Permalink
rustdoc: Don't have rustc emit warnings
Browse files Browse the repository at this point in the history
They're much more useful when building code, much less so when building
documentation.

Closes #13894
  • Loading branch information
alexcrichton committed May 3, 2014
1 parent 1547caf commit 5d145c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use rustc;
use rustc::{driver, middle};
use rustc::metadata::creader::Loader;
use rustc::middle::privacy;
use rustc::middle::lint;

use syntax::ast;
use syntax::parse::token;
Expand Down Expand Up @@ -65,6 +66,7 @@ fn get_ast_and_resolve(cpath: &Path, libs: HashSet<Path>, cfgs: Vec<~str>)
maybe_sysroot: Some(os::self_exe_path().unwrap().dir_path()),
addl_lib_search_paths: RefCell::new(libs),
crate_types: vec!(driver::session::CrateTypeDylib),
lint_opts: vec!((lint::Warnings, lint::allow)),
..rustc::driver::session::basic_options().clone()
};

Expand Down

0 comments on commit 5d145c1

Please sign in to comment.