From 0edd4f9499523d9f6c48607fe8dc70c84c5a404a Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Wed, 19 Jul 2023 10:52:12 +0000 Subject: [PATCH] Add comment for rustdoc overrides. --- src/librustdoc/core.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs index ceee6274ea5..bdb90915911 100644 --- a/src/librustdoc/core.rs +++ b/src/librustdoc/core.rs @@ -269,6 +269,7 @@ pub(crate) fn create_config( parse_sess_created: None, register_lints: Some(Box::new(crate::lint::register_lints)), override_queries: Some(|_sess, providers, _external_providers| { + // We do not register late module lints, so this only runs `MissingDoc`. // Most lints will require typechecking, so just don't run them. providers.lint_mod = |tcx, module_def_id| late_lint_mod(tcx, module_def_id, MissingDoc); // hack so that `used_trait_imports` won't try to call typeck