Skip to content

Commit 0edd4f9

Browse files
committed
Add comment for rustdoc overrides.
1 parent c0a683a commit 0edd4f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/librustdoc/core.rs

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ pub(crate) fn create_config(
269269
parse_sess_created: None,
270270
register_lints: Some(Box::new(crate::lint::register_lints)),
271271
override_queries: Some(|_sess, providers, _external_providers| {
272+
// We do not register late module lints, so this only runs `MissingDoc`.
272273
// Most lints will require typechecking, so just don't run them.
273274
providers.lint_mod = |tcx, module_def_id| late_lint_mod(tcx, module_def_id, MissingDoc);
274275
// hack so that `used_trait_imports` won't try to call typeck

0 commit comments

Comments
 (0)