Skip to content

Commit f89d509

Browse files
committed
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.
1 parent 1fa9200 commit f89d509

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compiler/rustc_middle/src/dep_graph/dep_node.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,26 +100,14 @@ pub(crate) fn make_compile_mono_item<'tcx>(
100100
}
101101

102102
pub trait DepNodeExt: Sized {
103-
/// Extracts the DefId corresponding to this DepNode. This will work
104-
/// if two conditions are met:
105-
///
106-
/// 1. The Fingerprint of the DepNode actually is a DefPathHash, and
107-
/// 2. the item that the DefPath refers to exists in the current tcx.
108-
///
109-
/// Condition (1) is determined by the DepKind variant of the
110-
/// DepNode. Condition (2) might not be fulfilled if a DepNode
111-
/// refers to something from the previous compilation session that
112-
/// has been removed.
113103
fn extract_def_id(&self, tcx: TyCtxt<'_>) -> Option<DefId>;
114104

115-
/// Used in testing
116105
fn from_label_string(
117106
tcx: TyCtxt<'_>,
118107
label: &str,
119108
def_path_hash: DefPathHash,
120109
) -> Result<Self, ()>;
121110

122-
/// Used in testing
123111
fn has_label_string(label: &str) -> bool;
124112
}
125113

0 commit comments

Comments
 (0)