diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-02 19:36:16 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-04 08:34:10 +1100 |
| commit | f89d509eb19d7f53cba39454a446b73d0ecc2fdb (patch) | |
| tree | 288388b681b9e1807a7fbc0f453175b02ac24b79 | |
| parent | 1fa9200475dae485dadf90845249f58395a33168 (diff) | |
| download | rust-f89d509eb19d7f53cba39454a446b73d0ecc2fdb.tar.gz rust-f89d509eb19d7f53cba39454a446b73d0ecc2fdb.zip | |
Remove comment duplication.
The same comments are on the `DepNodeExt` trait and the single impl of that trait, immediately below. This commit eliminates the duplication.
| -rw-r--r-- | compiler/rustc_middle/src/dep_graph/dep_node.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_middle/src/dep_graph/dep_node.rs b/compiler/rustc_middle/src/dep_graph/dep_node.rs index 9afba83a4f8..14c72a61acd 100644 --- a/compiler/rustc_middle/src/dep_graph/dep_node.rs +++ b/compiler/rustc_middle/src/dep_graph/dep_node.rs @@ -100,26 +100,14 @@ pub(crate) fn make_compile_mono_item<'tcx>( } pub trait DepNodeExt: Sized { - /// Extracts the DefId corresponding to this DepNode. This will work - /// if two conditions are met: - /// - /// 1. The Fingerprint of the DepNode actually is a DefPathHash, and - /// 2. the item that the DefPath refers to exists in the current tcx. - /// - /// Condition (1) is determined by the DepKind variant of the - /// DepNode. Condition (2) might not be fulfilled if a DepNode - /// refers to something from the previous compilation session that - /// has been removed. fn extract_def_id(&self, tcx: TyCtxt<'_>) -> Option<DefId>; - /// Used in testing fn from_label_string( tcx: TyCtxt<'_>, label: &str, def_path_hash: DefPathHash, ) -> Result<Self, ()>; - /// Used in testing fn has_label_string(label: &str) -> bool; } |
