about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-12-20 21:47:00 +0800
committerGitHub <noreply@github.com>2024-12-20 21:47:00 +0800
commit350e7f858e6a1cf56bfc99dd8cd4ef7fc4558485 (patch)
tree8dc090711d5a7e672c4e1f37cc1c0a6c2370fa66 /compiler/rustc_session/src
parent1652e3a56073b81f4c990f9c560dbbbab288d4ef (diff)
parent0daa921f0e95acef303f3c091a09d667f9b63405 (diff)
downloadrust-350e7f858e6a1cf56bfc99dd8cd4ef7fc4558485.tar.gz
rust-350e7f858e6a1cf56bfc99dd8cd4ef7fc4558485.zip
Rollup merge of #134514 - bjorn3:more_driver_refactors, r=jieyouxu
Improve dependency_format a bit

* Make `DependencyList` an `IndexVec` rather than emulating one using a `Vec` (which was off-by-one as LOCAL_CRATE was intentionally skipped)
* Update some comments for the fact that we now use `#[global_allocator]` rather than `extern crate alloc_system;`/`extern crate alloc_jemalloc;` for specifying which allocator to use. We still use a similar mechanism for the panic runtime, so refer to the panic runtime in those comments instead.
* An unrelated refactor to `create_and_enter_global_ctxt` I forgot to include in https://github.com/rust-lang/rust/pull/134302. This refactor is too small to be worth it's own PR.
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/cstore.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/cstore.rs b/compiler/rustc_session/src/cstore.rs
index beae9dc278c..c8a5c22ad12 100644
--- a/compiler/rustc_session/src/cstore.rs
+++ b/compiler/rustc_session/src/cstore.rs
@@ -42,7 +42,7 @@ pub enum CrateDepKind {
     /// A dependency that is only used for its macros.
     MacrosOnly,
     /// A dependency that is always injected into the dependency list and so
-    /// doesn't need to be linked to an rlib, e.g., the injected allocator.
+    /// doesn't need to be linked to an rlib, e.g., the injected panic runtime.
     Implicit,
     /// A dependency that is required by an rlib version of this crate.
     /// Ordinary `extern crate`s result in `Explicit` dependencies.