-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix an infinite loop in error reporting #4806
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
Conversation
The `path_to_root` function unfortunately didn't account for cycles in the dependency graph introduced through dev-dependencies, so if a cycle was present then the function would infinitely loop pushing items onto a vector. This commit fixes the infinite loop and also touches up the reporting to be a little more consistent with the rest of Cargo
r? @matklad (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ Hm, another place where we do tree walking is when traversing directories upwards. in theory, we might hit a cycle there as well because of links. |
📌 Commit 4f0b8f8 has been approved by |
⌛ Testing commit 4f0b8f8 with merge 792ee85670db56e6adaf50c0143d989b4bb838fe... |
⌛ Testing commit 4f0b8f8 with merge 5b905422cb44d7ee50fdfd5806ee2e6a336f85ab... |
💔 Test failed - status-travis |
@bors: retry
…On Mon, Dec 11, 2017 at 7:04 AM, bors ***@***.***> wrote:
💔 Test failed - status-travis
<https://travis-ci.org/rust-lang/cargo/builds/314757042?utm_source=github_status&utm_medium=notification>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4806 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95PdzBrXGE3mZAF_UB6bHa6_Zl_Hoks5s_ShFgaJpZM4Q8loO>
.
|
Fix an infinite loop in error reporting The `path_to_root` function unfortunately didn't account for cycles in the dependency graph introduced through dev-dependencies, so if a cycle was present then the function would infinitely loop pushing items onto a vector. This commit fixes the infinite loop and also touches up the reporting to be a little more consistent with the rest of Cargo
☀️ Test successful - status-appveyor, status-travis |
The
path_to_root
function unfortunately didn't account for cycles in thedependency graph introduced through dev-dependencies, so if a cycle was present
then the function would infinitely loop pushing items onto a vector.
This commit fixes the infinite loop and also touches up the reporting to be a
little more consistent with the rest of Cargo