-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
fix panic in Path::strip_prefix #93675
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This looks like a correct fix, I think, but I think it would be worthwhile to remove prefix_len as a distinct thing from prefix_remaining entirely -- it seems like it's essentially not a good idea to use that function (unless you know the state is Prefix, but then they have identical behavior). Would you be up for making that refactoring? It looks like there are not that many users that would need to change and all have a trivially known state, if I look locally. |
done |
Thanks, that looks great! @bors r+ rollup=never (potentially perf-sensitive) |
📌 Commit 8ef9477eac8ccad15078b21d2004813c3f084f4c has been approved by |
⌛ Testing commit 8ef9477eac8ccad15078b21d2004813c3f084f4c with merge eb40a89684843ed08dc5bf766825533517238e56... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
@bors retry x86_64 msvc (probably) spurious failure:
|
⌛ Testing commit 8ef9477eac8ccad15078b21d2004813c3f084f4c with merge 25b8514be67192e2651807fc34bcbd353c3e31d3... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
ok might not be spurious after all 🤔 |
I have no sense of why this might be happening -- this particular patch seems like it should be near-identical in terms of functionality. Maybe we're no longer including some prefix due to the change in include_cur_dir, which is causing us to reference a different path in the link invocation somehow? That would be surprising to me, the behavior looks right I think with the new impl. cc @the8472 since you've touched the path-related code recently and maybe can spot what I'm presumably overlooking here |
I see two potential problems a) the new #93586 (comment) mentions |
Btw, did you run stage0 std tests under windows locally? I guess CI didn't even get that far, but if the testsuite doesn't catch whatever is failing here then we need more coverge. |
I'm seeing these failures locally:
|
💔 Test failed - checks-actions |
9b061f5
to
9e07f54
Compare
|
☔ The latest upstream changes (presumably #94887) made this pull request unmergeable. Please resolve the merge conflicts. |
9e07f54
to
b87dd75
Compare
@rustbot ready |
@bors r+ |
📌 Commit b87dd75 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (83322c5): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
close #93586