Make comment on activate_injected_dep a doc comment
This commit is contained in:
@@ -370,15 +370,15 @@ fn attempt_static(tcx: TyCtxt<'_>, unavailable: &mut Vec<CrateNum>) -> Option<De
|
|||||||
Some(ret)
|
Some(ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Given a list of how to link upstream dependencies so far, ensure that an
|
/// Given a list of how to link upstream dependencies so far, ensure that an
|
||||||
// injected dependency is activated. This will not do anything if one was
|
/// injected dependency is activated. This will not do anything if one was
|
||||||
// transitively included already (e.g., via a dylib or explicitly so).
|
/// transitively included already (e.g., via a dylib or explicitly so).
|
||||||
//
|
///
|
||||||
// If an injected dependency was not found then we're guaranteed the
|
/// If an injected dependency was not found then we're guaranteed the
|
||||||
// metadata::creader module has injected that dependency (not listed as
|
/// metadata::creader module has injected that dependency (not listed as
|
||||||
// a required dependency) in one of the session's field. If this field is not
|
/// a required dependency) in one of the session's field. If this field is not
|
||||||
// set then this compilation doesn't actually need the dependency and we can
|
/// set then this compilation doesn't actually need the dependency and we can
|
||||||
// also skip this step entirely.
|
/// also skip this step entirely.
|
||||||
fn activate_injected_dep(
|
fn activate_injected_dep(
|
||||||
injected: Option<CrateNum>,
|
injected: Option<CrateNum>,
|
||||||
list: &mut DependencyList,
|
list: &mut DependencyList,
|
||||||
|
|||||||
Reference in New Issue
Block a user