rustc: Implement and enforce instance coherence

This commit is contained in:
Patrick Walton 2012-07-11 15:00:40 -07:00
parent b5729bd600
commit db020ab63c
111 changed files with 1746 additions and 526 deletions

View file

@ -11,7 +11,7 @@ import result::{ok, err};
import io::writer_util;
import std::{map, json, tempfile, term, sort, getopts};
import map::hashmap;
import json::to_str;
import to_str::to_str;
import getopts::{optflag, optopt, opt_present};
type package = {
@ -535,7 +535,7 @@ fn load_one_source_package(src: source, p: map::hashmap<~str, json::json>) {
versions: ~[]
};
alt src.packages.position(|pkg| pkg.uuid == uuid ) {
alt vec::position(src.packages, |pkg| pkg.uuid == uuid) {
some(idx) {
src.packages[idx] = newpkg;
log(debug, ~" updated package: " + src.name + ~"/" + name);