Update doc-comment.
This commit is contained in:
@@ -27,10 +27,9 @@ use crate::errors::{
|
|||||||
ChangeFields, IgnoredDerivedImpls, MultipleDeadCodes, ParentInfo, UselessAssignment,
|
ChangeFields, IgnoredDerivedImpls, MultipleDeadCodes, ParentInfo, UselessAssignment,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Any local node that may call something in its body block should be
|
/// Any local definition that may call something in its body block should be explored. For example,
|
||||||
// explored. For example, if it's a live Node::Item that is a
|
/// if it's a live function, then we should explore its block to check for codes that may need to
|
||||||
// function, then we should explore its block to check for codes that
|
/// be marked as live.
|
||||||
// may need to be marked as live.
|
|
||||||
fn should_explore(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
fn should_explore(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
||||||
match tcx.def_kind(def_id) {
|
match tcx.def_kind(def_id) {
|
||||||
DefKind::Mod
|
DefKind::Mod
|
||||||
|
|||||||
Reference in New Issue
Block a user