Fix cargo install * fails at assertion.

This commit is contained in:
Tycho Sci 2012-01-20 14:46:47 +09:00
parent abecc36463
commit 35cbcbe0c2

View file

@ -104,7 +104,7 @@ fn load_pkg(filename: str) -> option::t<pkg> {
let cm = codemap::new_codemap();
let sess = @{
cm: cm,
mutable next_id: 0,
mutable next_id: 1,
diagnostic: diagnostic::mk_handler(cm, none)
};
let c = parser::parse_crate_from_crate_file(filename, [], sess);