Skip to content

Commit 5d145c1

Browse files
committed
rustdoc: Don't have rustc emit warnings
They're much more useful when building code, much less so when building documentation. Closes #13894
1 parent 1547caf commit 5d145c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/core.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use rustc;
1212
use rustc::{driver, middle};
1313
use rustc::metadata::creader::Loader;
1414
use rustc::middle::privacy;
15+
use rustc::middle::lint;
1516

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

0 commit comments

Comments
 (0)