Skip to content
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

Use custom config entry iterator. #854

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jul 6, 2022

This switches ConfigEntries to a custom iterator implementation in order to solve a lifetime problem with git_config_next. Entries may not live between successive calls to git_config_next, so this needs to ensure that isn't allowed.

Fixes #836

This is a breaking API change. I don't feel this is particularly urgent, so I'm content to let it wait until some other change motivates a version bump. However, I know some people may be more sensitive to possible memory violations, so I figured I'd at least get a patch ready.

@alexcrichton alexcrichton merged commit 61f8afd into rust-lang:master Jul 7, 2022
nickgerace added a commit to nickgerace/gfold that referenced this pull request Aug 9, 2022
Primary:
- Switch to cargo workspace to replace xtask, make, etc.
- Add debug symbol stripping

Misc:
- Upgrade all packages
- Replace entries iterator with "next" due to the following PR:
  rust-lang/git2-rs#854
- Remove "rustfmt.toml"

Signed-off-by: Nick Gerace <[email protected]>
bors bot added a commit to nickgerace/gfold that referenced this pull request Aug 9, 2022
206: Switch to cargo workspace r=nickgerace a=nickgerace

Primary:
- Switch to cargo workspace to replace xtask, make, etc.
- Add debug symbol stripping

Misc:
- Upgrade all packages
- Replace entries iterator with "next" due to the following PR:
  rust-lang/git2-rs#854
- Remove "rustfmt.toml"

Fixes #207

Co-authored-by: Nick Gerace <[email protected]>
JohnFredok added a commit to JohnFredok/gfold that referenced this pull request Oct 24, 2023
Primary:
- Switch to cargo workspace to replace xtask, make, etc.
- Add debug symbol stripping

Misc:
- Upgrade all packages
- Replace entries iterator with "next" due to the following PR:
  rust-lang/git2-rs#854
- Remove "rustfmt.toml"

Signed-off-by: Nick Gerace <[email protected]>
JohnFredok added a commit to JohnFredok/gfold that referenced this pull request Oct 24, 2023
206: Switch to cargo workspace r=nickgerace a=nickgerace

Primary:
- Switch to cargo workspace to replace xtask, make, etc.
- Add debug symbol stripping

Misc:
- Upgrade all packages
- Replace entries iterator with "next" due to the following PR:
  rust-lang/git2-rs#854
- Remove "rustfmt.toml"

Fixes #207

Co-authored-by: Nick Gerace <[email protected]>
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.

Segmentation fault when collecting config entries in vector
2 participants