2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-06-29 22:35:49 -07:00
|
|
|
#[link(name = "rustc",
|
|
|
|
vers = "0.1",
|
|
|
|
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
|
|
|
|
url = "http://rust-lang.org/src/rustc")];
|
|
|
|
|
2011-06-18 16:44:53 -07:00
|
|
|
#[desc = "The Rust compiler"];
|
|
|
|
#[license = "BSD"];
|
2011-06-08 15:57:56 -07:00
|
|
|
|
2011-05-05 22:44:00 -04:00
|
|
|
|
2011-06-10 15:54:41 -07:00
|
|
|
use std (name = "std",
|
|
|
|
vers = "0.1",
|
|
|
|
url = "http://rust-lang.org/src/std");
|
2010-06-23 21:03:09 -07:00
|
|
|
|
2011-04-19 16:40:46 -07:00
|
|
|
mod middle {
|
|
|
|
mod trans;
|
|
|
|
mod ty;
|
2011-06-20 09:59:16 +02:00
|
|
|
mod ast_map;
|
2011-04-19 16:40:46 -07:00
|
|
|
mod resolve;
|
|
|
|
mod typeck;
|
2011-06-06 15:22:13 +02:00
|
|
|
mod alias;
|
2011-05-16 19:21:29 -07:00
|
|
|
|
2011-05-14 19:02:30 -07:00
|
|
|
mod tstate {
|
|
|
|
mod ck;
|
|
|
|
mod annotate;
|
2011-05-16 19:21:29 -07:00
|
|
|
mod aux = "auxiliary.rs";
|
2011-05-14 19:02:30 -07:00
|
|
|
mod bitvectors;
|
|
|
|
mod collect_locals;
|
|
|
|
mod pre_post_conditions;
|
|
|
|
mod states;
|
|
|
|
mod ann;
|
Compute typestate properly for move
typestate now drops constraints correctly in the post-state of
a move expression or a declaration whose op is a move. It doesn't
yet drop constraints mentioning variables that get updated.
To do this, I had to change typestate to use trit-vectors instead
of bit-vectors, because for every constraint, there are three
possible values: known-to-be-false (e.g. after x <- y, init(y) is
known-to-be-false), known-to-be-true, and unknown. Before, we
conflated known-to-be-false with unknown. But move requires them
to be treated differently. Consider:
(program a)
(a1) x = 1;
(a2) y <- x;
(a3) log x;
(program b)
(b1) x = 1;
(b2) y <- z;
(b3) log x;
With only two values, the postcondition of statement a2 for
constraint init(x) is the same as that of b2: 0. But in (a2)'s
postcondition, init(x) *must* be false, but in (b2)'s condition,
it's just whatever it was in the postcondition of the preceding statement.
2011-06-22 21:26:34 -07:00
|
|
|
mod tritv;
|
2011-05-14 19:02:30 -07:00
|
|
|
}
|
2011-04-19 16:40:46 -07:00
|
|
|
}
|
|
|
|
|
2011-05-14 19:02:30 -07:00
|
|
|
|
2011-07-05 11:48:19 +02:00
|
|
|
mod syntax {
|
|
|
|
mod ast;
|
|
|
|
mod fold;
|
|
|
|
mod walk;
|
|
|
|
mod visit;
|
|
|
|
mod codemap;
|
|
|
|
mod parse {
|
|
|
|
mod lexer;
|
|
|
|
mod parser;
|
|
|
|
mod token;
|
|
|
|
mod eval;
|
|
|
|
}
|
|
|
|
mod ext {
|
|
|
|
mod base;
|
|
|
|
mod fmt;
|
|
|
|
mod env;
|
|
|
|
mod simplext;
|
|
|
|
}
|
|
|
|
mod print {
|
|
|
|
mod pprust;
|
|
|
|
mod pp;
|
|
|
|
}
|
|
|
|
mod util {
|
|
|
|
mod interner;
|
|
|
|
}
|
2011-04-19 16:40:46 -07:00
|
|
|
}
|
|
|
|
|
2010-09-23 15:46:31 -07:00
|
|
|
mod front {
|
2011-06-29 23:42:35 -07:00
|
|
|
mod attr;
|
2011-06-29 22:32:08 -07:00
|
|
|
mod config;
|
2011-07-06 14:29:50 -07:00
|
|
|
mod test;
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|
|
|
|
|
2010-09-23 15:46:31 -07:00
|
|
|
mod back {
|
2011-05-13 16:47:37 -04:00
|
|
|
mod link;
|
2010-09-23 15:46:31 -07:00
|
|
|
mod abi;
|
2011-05-09 15:32:12 -07:00
|
|
|
mod upcall;
|
2010-09-23 15:46:31 -07:00
|
|
|
mod x86;
|
|
|
|
}
|
|
|
|
|
2011-06-27 14:18:32 -07:00
|
|
|
mod metadata {
|
2011-06-27 16:38:57 -07:00
|
|
|
export encoder;
|
|
|
|
export creader;
|
2011-07-07 18:00:16 -07:00
|
|
|
export cstore;
|
2011-07-07 22:18:38 -07:00
|
|
|
export csearch;
|
2011-06-27 16:38:57 -07:00
|
|
|
|
2011-07-07 12:22:39 -07:00
|
|
|
mod common;
|
2011-06-27 14:37:02 -07:00
|
|
|
mod tyencode;
|
2011-06-27 15:30:17 -07:00
|
|
|
mod tydecode;
|
2011-06-27 15:20:17 -07:00
|
|
|
mod encoder;
|
2011-06-27 15:53:27 -07:00
|
|
|
mod decoder;
|
2011-06-27 14:18:32 -07:00
|
|
|
mod creader;
|
2011-07-07 18:00:16 -07:00
|
|
|
mod cstore;
|
2011-07-07 22:18:38 -07:00
|
|
|
mod csearch;
|
2011-06-27 14:18:32 -07:00
|
|
|
}
|
|
|
|
|
2010-06-23 21:03:09 -07:00
|
|
|
mod driver {
|
|
|
|
mod rustc;
|
2010-09-01 13:24:14 -07:00
|
|
|
mod session;
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|
|
|
|
|
2010-08-18 11:34:47 -07:00
|
|
|
mod util {
|
|
|
|
mod common;
|
2011-07-05 11:48:19 +02:00
|
|
|
mod ppaux;
|
2010-08-18 11:34:47 -07:00
|
|
|
}
|
|
|
|
|
2011-05-12 17:24:54 +02:00
|
|
|
auth middle::metadata = unsafe;
|
|
|
|
auth middle::trans = unsafe;
|
|
|
|
auth lib::llvm = unsafe;
|
2010-09-22 15:21:06 -07:00
|
|
|
|
2010-07-12 17:47:40 -07:00
|
|
|
mod lib {
|
2011-06-20 17:59:45 -04:00
|
|
|
mod llvm;
|
2010-07-12 17:47:40 -07:00
|
|
|
}
|
|
|
|
|
2010-06-23 21:03:09 -07:00
|
|
|
// Local Variables:
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
2010-08-18 11:34:22 -07:00
|
|
|
// c-basic-offset: 4
|
2010-06-23 21:03:09 -07:00
|
|
|
// buffer-file-coding-system: utf-8-unix
|
2011-03-31 14:41:35 +00:00
|
|
|
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2010-06-23 21:03:09 -07:00
|
|
|
// End:
|