Skip to content

Commit e01c3b8

Browse files
authored
clarify wording
1 parent 3166e08 commit e01c3b8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

compiler/rustc_mir/src/monomorphize/collector.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@
6161
//!
6262
//! The roots of the mono item graph correspond to the public non-generic
6363
//! syntactic items in the source code. We find them by walking the HIR of the
64-
//! crate, and whenever we hit upon a public function, method, or static item, we
65-
//! create a mono item consisting of the items DefId and, since we only
66-
//! consider non-generic items, an empty type-substitution set.
64+
//! crate, and whenever we hit upon a public function, method, or static item,
65+
//! we create a mono item consisting of the items DefId and, since we only
66+
//! consider non-generic items, an empty type-substitution set. (In eager
67+
//! collection mode, during incremental compilation, all non-generic functions
68+
//! are considered as roots, as well as when the `-Clink-dead-code` option is
69+
//! specified. Functions marked `#[no_mangle]` also always act as roots.)
6770
//!
6871
//! ### Finding neighbor nodes
6972
//! Given a mono item node, we can discover neighbors by inspecting its

0 commit comments

Comments
 (0)