Skip to content

Fix Remote::get_refspec() lifetime bounds and add regression tests#1287

Open
DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:refspec-lifetime
Open

Fix Remote::get_refspec() lifetime bounds and add regression tests#1287
DanielEScherzer wants to merge 1 commit into
rust-lang:mainfrom
DanielEScherzer:refspec-lifetime

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Contributor

Set up testing with the trybuild crate so that we can confirm that the problematic code no longer compiles. I tried to add the regression test in a separate commit, but the problematic code compiled earlier (so compile_fail() could not be used) but did not run successfully (exit code 139 due to the use after free, so pass() could not be used either).

Fixes #1286

Set up testing with the `trybuild` crate so that we can confirm that the
problematic code no longer compiles. I tried to add the regression test in a
separate commit, but the problematic code compiled earlier (so `compile_fail()`
could not be used) but did not run successfully (exit code 139 due to the use
after free, so `pass()` could not be used either).

Fixes rust-lang#1286
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jul 8, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsound lifetime bound in Remote::get_refspec

2 participants