Skip to content

RepoBuilder::branch(): return a Result, handle invalid values - #1296

Open
DanielEScherzer wants to merge 2 commits into
rust-lang:mainfrom
DanielEScherzer:repo-builder-branch
Open

DanielEScherzer wants to merge 2 commits into
rust-lang:mainfrom
DanielEScherzer:repo-builder-branch

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Contributor

When the provided branch name cannot be converted to a CString, return an Err variant rather than panicking.

The test is currently marked as `#[should_panic]` because the implementation
panics when the branch given is invalid, a follow-up commit will switch to
returning a `Result`.
When the provided branch name cannot be converted to a `CString`, return an
`Err` variant rather than panicking.
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jul 16, 2026
@DanielEScherzer

Copy link
Copy Markdown
Contributor Author

@rustbot label +semver-breaking-change

@rustbot rustbot added the semver-breaking-change A SemVer breaking change that will require a new SemVer-incompatible version number bump. label Jul 16, 2026

This branch has not been deployed

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

Labels

S-waiting-on-review Status: Waiting on review semver-breaking-change A SemVer breaking change that will require a new SemVer-incompatible version number bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants