Skip to content

rustc_target: Avoid unwraps when adding linker flags #83593

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

Merged
merged 1 commit into from
Mar 28, 2021

Conversation

petrochenkov
Copy link
Contributor

These unwraps assume that some linker flags were already added by *_base::opts() methods, but that's doesn't necessarily remain the case when we are reducing the number of flags hardcoded in targets, as #83587 shows.

r? @nagisa

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 27, 2021
@nagisa
Copy link
Member

nagisa commented Mar 28, 2021

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 28, 2021

📌 Commit 049a49b has been approved by nagisa

@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 Mar 28, 2021
@bors
Copy link
Collaborator

bors commented Mar 28, 2021

⌛ Testing commit 049a49b with merge 505ed7f...

@bors
Copy link
Collaborator

bors commented Mar 28, 2021

☀️ Test successful - checks-actions
Approved by: nagisa
Pushing 505ed7f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 28, 2021
@bors bors merged commit 505ed7f into rust-lang:master Mar 28, 2021
@rustbot rustbot added this to the 1.53.0 milestone Mar 28, 2021
@petrochenkov petrochenkov deleted the nounwrap branch February 22, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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