Add comment for rustdoc overrides.
This commit is contained in:
parent
c0a683ab14
commit
0edd4f9499
@ -269,6 +269,7 @@ pub(crate) fn create_config(
|
|||||||
parse_sess_created: None,
|
parse_sess_created: None,
|
||||||
register_lints: Some(Box::new(crate::lint::register_lints)),
|
register_lints: Some(Box::new(crate::lint::register_lints)),
|
||||||
override_queries: Some(|_sess, providers, _external_providers| {
|
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.
|
// 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);
|
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
|
// hack so that `used_trait_imports` won't try to call typeck
|
||||||
|
Loading…
Reference in New Issue
Block a user