Skip to content

rustc_target: Refactor away TargetResult - #77580

Merged
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:norestarg
Oct 10, 2020
Merged

rustc_target: Refactor away TargetResult#77580
bors merged 2 commits into
rust-lang:masterfrom
petrochenkov:norestarg

Conversation

@petrochenkov

@petrochenkovpetrochenkov commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

Follow-up to #77202.

Construction of a built-in target is always infallible now, so TargetResult is no longer necessary.

The second commit contains some further cleanup based on built-in target construction being infallible.

Construction of a built-in target is always infallible now, so `TargetResult` is no longer necessary.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 5, 2020
using the fact that it is infallible.
JSON roundtrip check on every rustc run is also removed, it's already performed by unit tests.

@ehussehuss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jyn514jyn514 added A-target-specs Area: Compile-target specifications T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-cleanup Category: PRs that clean code up or issues documenting cleanup. labels Oct 5, 2020
@matthewjasper

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Oct 9, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 1444ad7 has been approved by matthewjasper

@borsbors 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 9, 2020
@bors

bors commented Oct 10, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1444ad7 with merge 0e022fc...

@bors

bors commented Oct 10, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions, checks-azure
Approved by: matthewjasper
Pushing 0e022fc to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Oct 10, 2020
@bors
bors merged commit 0e022fc into rust-lang:masterOct 10, 2020
@rustbotrustbot added this to the 1.49.0 milestone Oct 10, 2020
@petrochenkov
petrochenkov deleted the norestarg branch February 22, 2025 18:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-target-specsArea: Compile-target specificationsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@petrochenkov@rust-highfive@matthewjasper@bors@ehuss@jyn514@rustbot