about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-08-04 23:02:27 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-08-04 23:02:27 +0000
commitd0da6ca110157dee080afc39ca55fb6a944a9e99 (patch)
treee2b5e9a0e737b281c0c16bb0b1cb02aab8294efb
parente0a89c4b1475b2cd8d7f835e43e79543e262a1ec (diff)
downloadrust-d0da6ca110157dee080afc39ca55fb6a944a9e99.tar.gz
rust-d0da6ca110157dee080afc39ca55fb6a944a9e99.zip
Update doc-comment.
-rw-r--r--compiler/rustc_passes/src/dead.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs
index 9a163fa6063..fa9d0c7b1b7 100644
--- a/compiler/rustc_passes/src/dead.rs
+++ b/compiler/rustc_passes/src/dead.rs
@@ -27,10 +27,9 @@ use crate::errors::{
     ChangeFields, IgnoredDerivedImpls, MultipleDeadCodes, ParentInfo, UselessAssignment,
 };
 
-// Any local node that may call something in its body block should be
-// explored. For example, if it's a live Node::Item that is a
-// function, then we should explore its block to check for codes that
-// may need to be marked as live.
+/// Any local definition that may call something in its body block should be explored. For example,
+/// if it's a live function, then we should explore its block to check for codes that may need to
+/// be marked as live.
 fn should_explore(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
     match tcx.def_kind(def_id) {
         DefKind::Mod