2

fix(alias): dont panic when resolving an empty alias by weihanglo · Pull Request...

 1 month ago
source link: https://github.com/rust-lang/cargo/pull/13613
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

fix(alias): dont panic when resolving an empty alias #13613

Conversation

Member

What does this PR try to resolve?

Previously Cargo panicked when resolving empty aliases like these:

[alias]
buidthis = ""
buildthat = []

This PR fixes it.

How should we test and review this PR?

The first commit with a test demonstrates the panic, followed by a commit fixing that.

Collaborator

r? @epage

rustbot has assigned @epage.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot

added A-cli Area: Command-line interface, option parsing, etc. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Mar 21, 2024

Contributor

@bors r+

Collaborator

📌 Commit 46214f3 has been approved by epage

It is now in the queue for this repository.

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 21, 2024

Collaborator

⌛ Testing commit 46214f3 with merge d2fbe57...

Collaborator

☀️ Test successful - checks-actions
Approved by: epage
Pushing d2fbe57 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

epage

Labels
A-cli Area: Command-line interface, option parsing, etc. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

None yet

4 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK