Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code from compiletest::json #89993

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

pierwill
Copy link
Member

@pierwill pierwill commented Oct 17, 2021

Currently getting a dead code warning on master. Might make sense to remove.

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 17, 2021
@Mark-Simulacrum
Copy link
Member

Are you compiling with a custom bootstrap compiler? I would have expected the warning to be caught in CI...

@pierwill
Copy link
Member Author

pierwill commented Oct 18, 2021

This came up when doing rustc dev work, so probably yes.

@pierwill
Copy link
Member Author

With current nightly:

cd src/tools/compiletest
cargo c
    Checking compiletest v0.0.0 (repos/rust/src/tools/compiletest)
warning: field is never read: `explanation`
  --> src/tools/compiletest/src/json.rs:78:5
   |
78 |     explanation: Option<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `compiletest` (bin "compiletest") generated 1 warning
    Finished dev [unoptimized] target(s) in 27.81s

@Mark-Simulacrum
Copy link
Member

Oh, it's not generally expected that you'd try to build tools by hand like that -- we only verify building against the beta compiler in src/stage0.json, which is automatically provisioned by x.py for you.

I'll r+ this in the meantime, though, since it seems like a nice cleanup regardless.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Oct 18, 2021

📌 Commit b87a0b0 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 18, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 18, 2021
…askrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#89950 (bootstrap: tweak verbosity settings)
 - rust-lang#89965 (Fix ICE with `let...else` and `ref mut`)
 - rust-lang#89974 (Nicer error message if the user attempts to do let...else if)
 - rust-lang#89987 (Check implementing type for `#[doc(hidden)]`)
 - rust-lang#89989 (rustdoc: Add static size assertion for `clean::Type`)
 - rust-lang#89990 (rustc_span: `Ident::invalid` -> `Ident::empty`)
 - rust-lang#89993 (Remove dead code from `compiletest::json`)
 - rust-lang#89996 (Bump backtrace)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit adde016 into rust-lang:master Oct 18, 2021
@rustbot rustbot added this to the 1.58.0 milestone Oct 18, 2021
@pierwill pierwill deleted the patch-1 branch October 19, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants