Skip to content

Remote::is_valid_name(): handle errors in CString conversion - #1294

Merged
weihanglo merged 1 commit into
rust-lang:mainfrom
DanielEScherzer:remote-name-cstring
Jul 16, 2026
Merged

Remote::is_valid_name(): handle errors in CString conversion#1294
weihanglo merged 1 commit into
rust-lang:mainfrom
DanielEScherzer:remote-name-cstring

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Contributor

Instead of panicking, treat failure to create a CString as indicating that the name is not valid.

Instead of panicking, treat failure to create a `CString` as indicating that
the name is not valid.
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jul 16, 2026
@DanielEScherzer

Copy link
Copy Markdown
Contributor Author

C.f. #1229 and #1290

@weihanglo weihanglo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@weihanglo
weihanglo added this pull request to the merge queue Jul 16, 2026
Merged via the queue into rust-lang:main with commit a34d746 Jul 16, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting on review label Jul 16, 2026
@DanielEScherzer
DanielEScherzer deleted the remote-name-cstring branch July 16, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants