Skip to content

Commit

Permalink
Add comment for rustdoc overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Aug 4, 2023
1 parent c0a683a commit 0edd4f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0edd4f9

Please sign in to comment.