2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-06-30 00:35:49 -05:00
|
|
|
#[link(name = "rustc",
|
|
|
|
vers = "0.1",
|
|
|
|
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
|
|
|
|
url = "http://rust-lang.org/src/rustc")];
|
|
|
|
|
2011-06-18 18:44:53 -05:00
|
|
|
#[desc = "The Rust compiler"];
|
|
|
|
#[license = "BSD"];
|
2011-12-08 23:08:23 -06:00
|
|
|
#[crate_type = "bin"];
|
2011-05-05 21:44:00 -05:00
|
|
|
|
2011-06-10 17:54:41 -05:00
|
|
|
use std (name = "std",
|
|
|
|
vers = "0.1",
|
|
|
|
url = "http://rust-lang.org/src/std");
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-04-19 18:40:46 -05:00
|
|
|
mod middle {
|
2011-07-14 19:08:22 -05:00
|
|
|
mod trans_common;
|
2011-08-24 07:54:55 -05:00
|
|
|
mod trans_build;
|
2011-04-19 18:40:46 -05:00
|
|
|
mod trans;
|
2011-07-11 09:47:24 -05:00
|
|
|
mod trans_alt;
|
2011-08-09 18:42:55 -05:00
|
|
|
mod trans_objects;
|
2011-09-22 13:44:18 -05:00
|
|
|
mod trans_uniq;
|
2011-12-14 15:57:10 -06:00
|
|
|
mod trans_closure;
|
2011-09-02 09:09:41 -05:00
|
|
|
mod trans_vec;
|
2012-01-02 05:21:44 -06:00
|
|
|
mod trans_impl;
|
2011-04-19 18:40:46 -05:00
|
|
|
mod ty;
|
2011-06-20 02:59:16 -05:00
|
|
|
mod ast_map;
|
2011-04-19 18:40:46 -05:00
|
|
|
mod resolve;
|
|
|
|
mod typeck;
|
2011-10-13 14:25:57 -05:00
|
|
|
mod fn_usage;
|
2011-07-25 06:45:09 -05:00
|
|
|
mod check_alt;
|
2011-11-08 20:26:02 -06:00
|
|
|
mod check_const;
|
2011-08-31 11:45:37 -05:00
|
|
|
mod mut;
|
2011-06-06 08:22:13 -05:00
|
|
|
mod alias;
|
2011-11-17 09:42:17 -06:00
|
|
|
mod last_use;
|
2011-11-21 03:56:00 -06:00
|
|
|
mod block_use;
|
2011-07-27 19:49:00 -05:00
|
|
|
mod kind;
|
2011-07-18 19:26:37 -05:00
|
|
|
mod freevars;
|
2011-08-04 12:46:10 -05:00
|
|
|
mod shape;
|
2011-08-11 16:33:40 -05:00
|
|
|
mod gc;
|
2011-11-09 23:55:09 -06:00
|
|
|
mod debuginfo;
|
2011-12-19 14:50:31 -06:00
|
|
|
mod capture;
|
2011-05-16 21:21:29 -05:00
|
|
|
|
2011-05-14 21:02:30 -05:00
|
|
|
mod tstate {
|
|
|
|
mod ck;
|
|
|
|
mod annotate;
|
2011-11-21 22:31:09 -06:00
|
|
|
#[path = "auxiliary.rs"]
|
|
|
|
mod aux;
|
2011-05-14 21:02:30 -05: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 23:26:34 -05:00
|
|
|
mod tritv;
|
2011-05-14 21:02:30 -05:00
|
|
|
}
|
2011-04-19 18:40:46 -05:00
|
|
|
}
|
|
|
|
|
2011-05-14 21:02:30 -05:00
|
|
|
|
2011-07-05 04:48:19 -05:00
|
|
|
mod syntax {
|
|
|
|
mod ast;
|
2011-08-21 23:44:41 -05:00
|
|
|
mod ast_util;
|
2011-08-08 16:17:33 -05:00
|
|
|
|
2011-07-05 04:48:19 -05:00
|
|
|
mod fold;
|
|
|
|
mod visit;
|
|
|
|
mod codemap;
|
|
|
|
mod parse {
|
|
|
|
mod lexer;
|
|
|
|
mod parser;
|
|
|
|
mod token;
|
|
|
|
mod eval;
|
|
|
|
}
|
|
|
|
mod ext {
|
|
|
|
mod base;
|
2011-08-03 13:46:32 -05:00
|
|
|
mod expand;
|
|
|
|
|
2011-09-01 19:49:29 -05:00
|
|
|
mod fmt;
|
2011-07-05 04:48:19 -05:00
|
|
|
mod env;
|
|
|
|
mod simplext;
|
2011-08-03 13:46:32 -05:00
|
|
|
mod concat_idents;
|
|
|
|
mod ident_to_str;
|
2011-08-08 16:17:33 -05:00
|
|
|
mod log_syntax;
|
2011-07-05 04:48:19 -05:00
|
|
|
}
|
|
|
|
mod print {
|
|
|
|
mod pprust;
|
|
|
|
mod pp;
|
|
|
|
}
|
|
|
|
mod util {
|
|
|
|
mod interner;
|
|
|
|
}
|
2011-04-19 18:40:46 -05:00
|
|
|
}
|
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
mod front {
|
2011-06-30 01:42:35 -05:00
|
|
|
mod attr;
|
2011-06-30 00:32:08 -05:00
|
|
|
mod config;
|
2011-07-06 16:29:50 -05:00
|
|
|
mod test;
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
mod back {
|
2011-05-13 15:47:37 -05:00
|
|
|
mod link;
|
2010-09-23 17:46:31 -05:00
|
|
|
mod abi;
|
2011-05-09 17:32:12 -05:00
|
|
|
mod upcall;
|
2010-09-23 17:46:31 -05:00
|
|
|
mod x86;
|
2011-10-13 14:23:50 -05:00
|
|
|
mod x86_64;
|
2011-10-04 17:23:32 -05:00
|
|
|
mod rpath;
|
2011-10-12 14:29:08 -05:00
|
|
|
mod target_strs;
|
2010-09-23 17:46:31 -05:00
|
|
|
}
|
|
|
|
|
2011-06-27 16:18:32 -05:00
|
|
|
mod metadata {
|
2011-06-27 18:38:57 -05:00
|
|
|
export encoder;
|
|
|
|
export creader;
|
2011-07-07 20:00:16 -05:00
|
|
|
export cstore;
|
2011-07-08 00:18:38 -05:00
|
|
|
export csearch;
|
2011-06-27 18:38:57 -05:00
|
|
|
|
2011-07-07 14:22:39 -05:00
|
|
|
mod common;
|
2011-06-27 16:37:02 -05:00
|
|
|
mod tyencode;
|
2011-06-27 17:30:17 -05:00
|
|
|
mod tydecode;
|
2011-06-27 17:20:17 -05:00
|
|
|
mod encoder;
|
2011-06-27 17:53:27 -05:00
|
|
|
mod decoder;
|
2011-06-27 16:18:32 -05:00
|
|
|
mod creader;
|
2011-07-07 20:00:16 -05:00
|
|
|
mod cstore;
|
2011-07-08 00:18:38 -05:00
|
|
|
mod csearch;
|
2011-06-27 16:18:32 -05:00
|
|
|
}
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
mod driver {
|
2011-12-20 04:17:13 -06:00
|
|
|
mod driver;
|
2010-09-01 15:24:14 -05:00
|
|
|
mod session;
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
2010-08-18 13:34:47 -05:00
|
|
|
mod util {
|
|
|
|
mod common;
|
2011-07-05 04:48:19 -05:00
|
|
|
mod ppaux;
|
2011-10-03 14:46:22 -05:00
|
|
|
mod filesearch;
|
2010-08-18 13:34:47 -05:00
|
|
|
}
|
|
|
|
|
2010-07-12 19:47:40 -05:00
|
|
|
mod lib {
|
2011-06-20 16:59:45 -05:00
|
|
|
mod llvm;
|
2010-07-12 19:47:40 -05:00
|
|
|
}
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
// Local Variables:
|
|
|
|
// fill-column: 78;
|
|
|
|
// indent-tabs-mode: nil
|
2010-08-18 13:34:22 -05:00
|
|
|
// c-basic-offset: 4
|
2010-06-23 23:03:09 -05:00
|
|
|
// buffer-file-coding-system: utf-8-unix
|
2011-03-31 09:41:35 -05:00
|
|
|
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
|
2010-06-23 23:03:09 -05:00
|
|
|
// End:
|