You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If this unit is needed for doc-scraping, then we generate a diagnostic that
286
-
// describes the set of reverse-dependencies that cause the unit to be needed.
287
-
let target_desc = unit.target.description_named();
288
-
letmut for_scrape_units = cx
289
-
.bcx
290
-
.scrape_units_have_dep_on(unit)
291
-
.into_iter()
292
-
.map(|unit| unit.target.description_named())
293
-
.collect::<Vec<_>>();
294
-
for_scrape_units.sort();
295
-
let for_scrape_units = for_scrape_units.join(", ");
296
-
let failed_scrape_diagnostic = make_failed_scrape_diagnostic(cx, unit,format!("failed to check {target_desc} in package `{name}` as a prerequisite for scraping examples from: {for_scrape_units}"));
297
-
298
290
let hide_diagnostics_for_scrape_unit = cx.bcx.unit_can_fail_for_docscraping(unit)
let failed_scrape_diagnostic = hide_diagnostics_for_scrape_unit.then(|| {
293
+
// If this unit is needed for doc-scraping, then we generate a diagnostic that
294
+
// describes the set of reverse-dependencies that cause the unit to be needed.
295
+
let target_desc = unit.target.description_named();
296
+
letmut for_scrape_units = cx
297
+
.bcx
298
+
.scrape_units_have_dep_on(unit)
299
+
.into_iter()
300
+
.map(|unit| unit.target.description_named())
301
+
.collect::<Vec<_>>();
302
+
for_scrape_units.sort();
303
+
let for_scrape_units = for_scrape_units.join(", ");
304
+
make_failed_scrape_diagnostic(cx, unit,format_args!("failed to check {target_desc} in package `{name}` as a prerequisite for scraping examples from: {for_scrape_units}"))
0 commit comments