session: disable internal lints for rustdoc
If an internal lint uses `typeck_results` or similar queries then that can result in rustdoc checking code that it shouldn't (e.g. from other platforms) and emit compilation errors. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
1b8e4b9391
commit
f5e005f0ca
5 changed files with 11 additions and 17 deletions
|
|
@ -788,7 +788,7 @@ fn main_options(options: config::Options) -> MainResult {
|
|||
if sess.opts.describe_lints {
|
||||
let mut lint_store = rustc_lint::new_lint_store(
|
||||
sess.opts.unstable_opts.no_interleave_lints,
|
||||
sess.unstable_options(),
|
||||
sess.enable_internal_lints(),
|
||||
);
|
||||
let registered_lints = if let Some(register_lints) = compiler.register_lints() {
|
||||
register_lints(sess, &mut lint_store);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue