Skip to content

Commit 7d0f158

Browse files
committed
Make comment on activate_injected_dep a doc comment
1 parent 09c0529 commit 7d0f158

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

compiler/rustc_metadata/src/dependency_format.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,15 @@ fn attempt_static(tcx: TyCtxt<'_>, unavailable: &mut Vec<CrateNum>) -> Option<De
370370
Some(ret)
371371
}
372372

373-
// Given a list of how to link upstream dependencies so far, ensure that an
374-
// injected dependency is activated. This will not do anything if one was
375-
// transitively included already (e.g., via a dylib or explicitly so).
376-
//
377-
// If an injected dependency was not found then we're guaranteed the
378-
// metadata::creader module has injected that dependency (not listed as
379-
// a required dependency) in one of the session's field. If this field is not
380-
// set then this compilation doesn't actually need the dependency and we can
381-
// also skip this step entirely.
373+
/// Given a list of how to link upstream dependencies so far, ensure that an
374+
/// injected dependency is activated. This will not do anything if one was
375+
/// transitively included already (e.g., via a dylib or explicitly so).
376+
///
377+
/// If an injected dependency was not found then we're guaranteed the
378+
/// metadata::creader module has injected that dependency (not listed as
379+
/// a required dependency) in one of the session's field. If this field is not
380+
/// set then this compilation doesn't actually need the dependency and we can
381+
/// also skip this step entirely.
382382
fn activate_injected_dep(
383383
injected: Option<CrateNum>,
384384
list: &mut DependencyList,

0 commit comments

Comments
 (0)