Fix OUT_DIR not being passed to rustdoc
auto merge of #848 : tomaka/cargo/fix-847, r=alexcrichton

Close #847