Auto merge of #4404 - parkovski:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 14 Aug 2017 23:23:05 +0000 (23:23 +0000)
committerbors <bors@rust-lang.org>
Mon, 14 Aug 2017 23:23:05 +0000 (23:23 +0000)
Fix #4370 - init panic in C:\ or /

This fixes the crash in this issue, but the error message is strange - unable to create directory 'C:\\.'. I don't have write permissions there without becoming admin, so I suspect it's just a permission issue, but the weird error can be fixed by calling Path::canonicalize on line 300.

1  2 
src/cargo/ops/cargo_new.rs

Simple merge