about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-07-26 11:42:27 +0100
committerDavid Wood <david.wood@huawei.com>2022-07-27 11:24:27 +0100
commitf5e005f0ca0b6fbc427315fa7e6943f4b738e12d (patch)
treede0cf7876605a8ee27d3c04ed92cd15d3a3baf76 /compiler/rustc_interface/src
parent1b8e4b9391550147683c6cbec91faa95289a5827 (diff)
downloadrust-f5e005f0ca0b6fbc427315fa7e6943f4b738e12d.tar.gz
rust-f5e005f0ca0b6fbc427315fa7e6943f4b738e12d.zip
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>
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 334a595a88a..8f083591786 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -210,7 +210,7 @@ pub fn register_plugins<'a>(
 
     let mut lint_store = rustc_lint::new_lint_store(
         sess.opts.unstable_opts.no_interleave_lints,
-        sess.unstable_options(),
+        sess.enable_internal_lints(),
     );
     register_lints(sess, &mut lint_store);