about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-07-05 11:33:14 +0200
committerGitHub <noreply@github.com>2024-07-05 11:33:14 +0200
commit7a79392c82b91cf0339310d0952cd4aeb37b3b5c (patch)
tree80b808ff346400b79d5e846b2f8371d4bd372843 /compiler
parentd2e6cf7fa78500d6c264e35468278aeffd806258 (diff)
parent9e40b546eb6cd75aaca9bacf39f2463e5b5ffe86 (diff)
downloadrust-7a79392c82b91cf0339310d0952cd4aeb37b3b5c.tar.gz
rust-7a79392c82b91cf0339310d0952cd4aeb37b3b5c.zip
Rollup merge of #124290 - klensy:dep-format, r=jieyouxu
DependencyList: removed outdated comment

Comment was outdated. Didn't updated description, as `Linkage` enum have descriptive names.

Also added fixme about moving this file to rustc_metadata.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/middle/dependency_format.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/middle/dependency_format.rs b/compiler/rustc_middle/src/middle/dependency_format.rs
index e7d0cffc85c..a3aff9a1101 100644
--- a/compiler/rustc_middle/src/middle/dependency_format.rs
+++ b/compiler/rustc_middle/src/middle/dependency_format.rs
@@ -4,15 +4,15 @@
 //! For all the gory details, see the provider of the `dependency_formats`
 //! query.
 
+// FIXME: move this file to rustc_metadata::dependency_format, but
+// this will introduce circular dependency between rustc_metadata and rustc_middle
+
 use rustc_macros::{Decodable, Encodable, HashStable};
 use rustc_session::config::CrateType;
 
 /// A list of dependencies for a certain crate type.
 ///
 /// The length of this vector is the same as the number of external crates used.
-/// The value is None if the crate does not need to be linked (it was found
-/// statically in another dylib), or Some(kind) if it needs to be linked as
-/// `kind` (either static or dynamic).
 pub type DependencyList = Vec<Linkage>;
 
 /// A mapping of all required dependencies for a particular flavor of output.