diff options
| author | Mario Carneiro <di.gama@gmail.com> | 2021-04-02 09:55:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 09:55:23 -0700 |
| commit | e01c3b82110a3338eab2e2d9cffbb74dc7039bc7 (patch) | |
| tree | 8abf496a50ebe844a9746e46e9ff1ff61a5c1b8e | |
| parent | 3166e0857defd02d78f5afe1a64380a429967cc7 (diff) | |
| download | rust-e01c3b82110a3338eab2e2d9cffbb74dc7039bc7.tar.gz rust-e01c3b82110a3338eab2e2d9cffbb74dc7039bc7.zip | |
clarify wording
| -rw-r--r-- | compiler/rustc_mir/src/monomorphize/collector.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/monomorphize/collector.rs b/compiler/rustc_mir/src/monomorphize/collector.rs index cadfc85a858..8ecb0a7cdc5 100644 --- a/compiler/rustc_mir/src/monomorphize/collector.rs +++ b/compiler/rustc_mir/src/monomorphize/collector.rs @@ -61,9 +61,12 @@ //! //! The roots of the mono item graph correspond to the public non-generic //! syntactic items in the source code. We find them by walking the HIR of the -//! crate, and whenever we hit upon a public function, method, or static item, we -//! create a mono item consisting of the items DefId and, since we only -//! consider non-generic items, an empty type-substitution set. +//! crate, and whenever we hit upon a public function, method, or static item, +//! we create a mono item consisting of the items DefId and, since we only +//! consider non-generic items, an empty type-substitution set. (In eager +//! collection mode, during incremental compilation, all non-generic functions +//! are considered as roots, as well as when the `-Clink-dead-code` option is +//! specified. Functions marked `#[no_mangle]` also always act as roots.) //! //! ### Finding neighbor nodes //! Given a mono item node, we can discover neighbors by inspecting its |
