Skip to content

Commit 617f8b3

Browse files
authored
Unrolled build for rust-lang#133550
Rollup merge of rust-lang#133550 - onur-ozkan:doc-log, r=jieyouxu print generated doc paths Resolves rust-lang#133002
2 parents eddb717 + e11cfeb commit 617f8b3

File tree

1 file changed

+5
-1
lines changed
  • src/bootstrap/src/core/builder

1 file changed

+5
-1
lines changed

src/bootstrap/src/core/builder/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1523,15 +1523,19 @@ impl<'a> Builder<'a> {
15231523
pub(crate) fn maybe_open_in_browser<S: Step>(&self, path: impl AsRef<Path>) {
15241524
if self.was_invoked_explicitly::<S>(Kind::Doc) {
15251525
self.open_in_browser(path);
1526+
} else {
1527+
self.info(&format!("Doc path: {}", path.as_ref().display()));
15261528
}
15271529
}
15281530

15291531
pub(crate) fn open_in_browser(&self, path: impl AsRef<Path>) {
1532+
let path = path.as_ref();
1533+
15301534
if self.config.dry_run() || !self.config.cmd.open() {
1535+
self.info(&format!("Doc path: {}", path.display()));
15311536
return;
15321537
}
15331538

1534-
let path = path.as_ref();
15351539
self.info(&format!("Opening doc {}", path.display()));
15361540
if let Err(err) = opener::open(path) {
15371541
self.info(&format!("{err}\n"));

0 commit comments

Comments
 (0)