From: bors Date: Tue, 12 Dec 2017 05:41:53 +0000 (+0000) Subject: Auto merge of #4806 - alexcrichton:fix-infinite-loop, r=matklad X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~4^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bc9ffdf66fe0796b83585d09519a3beecd9a079d;p=cargo.git Auto merge of #4806 - alexcrichton:fix-infinite-loop, r=matklad 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 --- bc9ffdf66fe0796b83585d09519a3beecd9a079d