Add comment for rustdoc overrides.

This commit is contained in:
Camille GILLOT 2023-07-19 10:52:12 +00:00
parent c0a683ab14
commit 0edd4f9499

View File

@ -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