Uh oh!
There was an error while loading. Please reload this page.
Allow rustdoc to get compiled with debuginfo - #44812
Conversation
There was a problem hiding this comment.
Should be build.config, not self.config.
Details
[00:02:02] error[E0609]: no field `config` on type `tool::Rustdoc`
[00:02:02] --> /checkout/src/bootstrap/tool.rs:309:43
[00:02:02] |
[00:02:02] 309 | cargo.env("RUSTC_DEBUGINFO", self.config.rust_debuginfo.to_string())
[00:02:02] | ^^^^^^ unknown field
[00:02:02] |
[00:02:02] = note: available fields are: `host`
[00:02:02] [00:02:02] error[E0609]: no field `config` on type `tool::Rustdoc`
[00:02:02] --> /checkout/src/bootstrap/tool.rs:310:49
[00:02:02] |
[00:02:02] 310 | .env("RUSTC_DEBUGINFO_LINES", self.config.rust_debuginfo_lines.to_string())
[00:02:02] | ^^^^^^ unknown field
[00:02:02] |
[00:02:02] = note: available fields are: `host`
[00:02:02] [00:02:02] error: aborting due to 2 previous errors
[00:02:02] [00:02:02] error: Could not compile `bootstrap`.
767c743 to
6232355CompareQuietMisdreavus
commented
Sep 24, 2017
librustdoc failed to build, citing the metadata flag: |
6232355 to
7980110CompareQuietMisdreavus
commented
Sep 24, 2017
I checked out this branch, and can confirm that Visual Studio happily set breakpoints and stepped through code in librustdoc with this change. |
There was a problem hiding this comment.
I don't think this env var is necessary because we're not shipping rlibs, just the rustdoc executable
alexcrichton
commented
Sep 25, 2017
r=me with one minor nit |
7980110 to
33b5ec3CompareMark-Simulacrum
commented
Sep 26, 2017
@bors r+ |
bors
commented
Sep 26, 2017
📌 Commit 33b5ec3 has been approved by |
Mark-Simulacrum
commented
Sep 26, 2017
@bors r=alexcrichton p=1 Nominating for beta backport. Tiny patch, and I think without this we may lose nice ICEs from rustdoc. Not overly concerned, though, and I'm not sure how much debug information we ship anyway... |
bors
commented
Sep 26, 2017
💡 This pull request was already approved, no need to approve it again.
|
bors
commented
Sep 26, 2017
📌 Commit 33b5ec3 has been approved by |
alexcrichton
commented
Sep 27, 2017
I don't think we've had rustdoc debuginfo turned on for quite awhile now, right? |
alexcrichton
commented
Sep 27, 2017
(in that I wouldn't personally be inclined to backport) |
bors
commented
Sep 27, 2017
Allow rustdoc to get compiled with debuginfo Fixes#44810 cc @QuietMisdreavus r? @alexcrichton
bors
commented
Sep 27, 2017
☀️ Test successful - status-appveyor, status-travis |
Mark-Simulacrum
commented
Sep 27, 2017
Yeah, I don't really care about the backport. I'll denominate -- we can always backport if necessary. |
Fixes#44810
cc @QuietMisdreavus
r? @alexcrichton