2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-06-30 00:35:49 -05:00
|
|
|
#[link(name = "rustc",
|
2012-10-12 18:41:25 -05:00
|
|
|
vers = "0.5",
|
2011-06-30 00:35:49 -05:00
|
|
|
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
|
2012-03-28 15:42:17 -05:00
|
|
|
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];
|
2011-06-30 00:35:49 -05:00
|
|
|
|
2012-01-23 18:25:15 -06:00
|
|
|
#[comment = "The Rust compiler"];
|
2012-01-08 18:21:43 -06:00
|
|
|
#[license = "MIT"];
|
2012-01-17 16:40:59 -06:00
|
|
|
#[crate_type = "lib"];
|
2011-05-05 21:44:00 -05:00
|
|
|
|
2012-04-05 19:30:26 -05:00
|
|
|
#[no_core];
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2012-09-18 17:52:21 -05:00
|
|
|
#[legacy_modes];
|
2012-09-25 17:22:28 -05:00
|
|
|
#[legacy_exports];
|
2012-09-18 17:52:21 -05:00
|
|
|
|
Nomenclature fixes in the lint checker. Fewer double-negatives.
New style is allow(foo), warn(foo), deny(foo) and forbid(foo),
mirrored by -A foo, -W foo, -D foo and -F foo on command line.
These replace -W no-foo, -W foo, -W err-foo, respectively.
Forbid is new, and means "deny, and you can't override it".
2012-07-26 19:08:21 -05:00
|
|
|
#[allow(vecs_implicitly_copyable)];
|
2012-09-18 13:20:57 -05:00
|
|
|
#[allow(non_camel_case_types)];
|
2012-09-28 20:38:59 -05:00
|
|
|
#[allow(deprecated_mode)];
|
|
|
|
#[allow(deprecated_pattern)];
|
2012-06-04 20:34:24 -05:00
|
|
|
|
2012-10-12 18:41:25 -05:00
|
|
|
extern mod core(vers = "0.5");
|
|
|
|
extern mod std(vers = "0.5");
|
|
|
|
extern mod syntax(vers = "0.5");
|
2012-04-05 19:30:26 -05:00
|
|
|
|
2012-09-05 13:46:25 -05:00
|
|
|
use core::*;
|
2012-03-22 17:27:35 -05:00
|
|
|
|
2012-05-13 17:56:45 -05:00
|
|
|
/*
|
|
|
|
Alternate names for some modules.
|
|
|
|
|
|
|
|
I am using this to help extract metadata into its own crate. In metadata.rs
|
|
|
|
it redefines all these modules in order to gate access from metadata to the
|
|
|
|
rest of the compiler, then uses these to access the original implementation.
|
|
|
|
*/
|
2012-09-05 13:46:25 -05:00
|
|
|
use util_ = util;
|
|
|
|
use lib_ = lib;
|
|
|
|
use driver_ = driver;
|
|
|
|
use middle_ = middle;
|
|
|
|
use back_ = back;
|
2012-05-13 17:56:45 -05:00
|
|
|
|
2011-04-19 18:40:46 -05:00
|
|
|
mod middle {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-01-27 06:17:06 -06:00
|
|
|
mod trans {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod inline;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod monomorphize;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod controlflow;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod glue;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod datum;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod callee;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-28 17:54:45 -05:00
|
|
|
mod expr;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod common;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-31 20:34:36 -05:00
|
|
|
mod consts;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-02-21 08:22:55 -06:00
|
|
|
mod type_of;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod build;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod base;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod alt;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod uniq;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod closure;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-27 06:17:06 -06:00
|
|
|
mod tvec;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-09-11 21:28:14 -05:00
|
|
|
mod meth;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-06-26 18:18:37 -05:00
|
|
|
mod foreign;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-14 19:57:39 -05:00
|
|
|
mod reflect;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-02-14 22:12:47 -06:00
|
|
|
mod shape;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-02-17 15:51:19 -06:00
|
|
|
mod debuginfo;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-12 10:31:22 -05:00
|
|
|
mod type_use;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-20 06:28:46 -05:00
|
|
|
mod reachable;
|
2012-09-25 17:21:16 -05:00
|
|
|
mod machine;
|
2012-10-22 19:57:10 -05:00
|
|
|
mod deriving;
|
2012-01-27 06:17:06 -06:00
|
|
|
}
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-04-19 18:40:46 -05:00
|
|
|
mod ty;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-29 15:26:26 -05:00
|
|
|
mod resolve;
|
2012-11-14 18:32:37 -06:00
|
|
|
pub mod typeck {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-11-14 18:32:37 -06:00
|
|
|
#[legacy_exports]
|
|
|
|
pub mod check {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 08:38:43 -05:00
|
|
|
mod alt;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 10:01:41 -05:00
|
|
|
mod vtable;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 10:01:41 -05:00
|
|
|
mod writeback;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 10:51:16 -05:00
|
|
|
mod regionmanip;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 10:01:41 -05:00
|
|
|
mod regionck;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-16 10:01:41 -05:00
|
|
|
mod demand;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-11-14 18:32:37 -06:00
|
|
|
pub mod method;
|
2012-05-16 08:38:43 -05:00
|
|
|
}
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-18 15:49:33 -05:00
|
|
|
mod rscope;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-15 10:29:22 -05:00
|
|
|
mod astconv;
|
2012-08-13 17:06:13 -05:00
|
|
|
mod infer {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod assignment;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod combine;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod glb;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod integral;
|
2012-11-07 20:40:34 -06:00
|
|
|
mod floating;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod lattice;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod lub;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-10-19 08:01:01 -05:00
|
|
|
mod region_inference;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod resolve;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod sub;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod to_str;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-13 17:06:13 -05:00
|
|
|
mod unify;
|
2012-11-01 17:16:46 -05:00
|
|
|
#[cfg(test)]
|
|
|
|
#[legacy_exports]
|
|
|
|
mod test;
|
2012-08-13 17:06:13 -05:00
|
|
|
}
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-15 10:29:22 -05:00
|
|
|
mod collect;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-10 19:33:16 -05:00
|
|
|
mod coherence;
|
2012-10-22 19:57:10 -05:00
|
|
|
mod deriving;
|
2012-05-15 10:29:22 -05:00
|
|
|
}
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-26 05:39:20 -05:00
|
|
|
mod check_loop;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-25 06:45:09 -05:00
|
|
|
mod check_alt;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-11-08 20:26:02 -06:00
|
|
|
mod check_const;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-19 02:50:51 -06:00
|
|
|
mod lint;
|
2012-06-01 12:46:17 -05:00
|
|
|
mod borrowck {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-06-01 12:46:17 -05:00
|
|
|
mod check_loans;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-06-01 12:46:17 -05:00
|
|
|
mod gather_loans;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-06-01 12:46:17 -05:00
|
|
|
mod loan;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-06-01 12:46:17 -05:00
|
|
|
mod preserve;
|
|
|
|
}
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-08-08 10:15:32 -05:00
|
|
|
mod mem_categorization;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-19 07:52:01 -05:00
|
|
|
mod liveness;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-27 19:49:00 -05:00
|
|
|
mod kind;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-18 19:26:37 -05:00
|
|
|
mod freevars;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-12-19 14:50:31 -06:00
|
|
|
mod capture;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-14 18:05:07 -06:00
|
|
|
mod pat_util;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-09 18:39:54 -06:00
|
|
|
mod region;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-03-22 16:56:56 -05:00
|
|
|
mod const_eval;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-14 18:15:11 -05:00
|
|
|
mod astencode;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-07-25 20:36:18 -05:00
|
|
|
mod lang_items;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-09-04 16:48:32 -05:00
|
|
|
mod privacy;
|
2011-04-19 18:40:46 -05:00
|
|
|
}
|
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
mod front {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2011-06-30 00:32:08 -05:00
|
|
|
mod config;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-06 16:29:50 -05:00
|
|
|
mod test;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-01-26 17:20:29 -06:00
|
|
|
mod core_inject;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-10 19:18:04 -05:00
|
|
|
mod intrinsic_inject;
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|
2010-09-23 17:46:31 -05:00
|
|
|
mod back {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2012-09-18 13:46:39 -05:00
|
|
|
mod link;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2010-09-23 17:46:31 -05:00
|
|
|
mod abi;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-05-09 17:32:12 -05:00
|
|
|
mod upcall;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2010-09-23 17:46:31 -05:00
|
|
|
mod x86;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-10-13 14:23:50 -05:00
|
|
|
mod x86_64;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-10-04 17:23:32 -05:00
|
|
|
mod rpath;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
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 {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
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;
|
2012-05-14 18:15:11 -05:00
|
|
|
export common;
|
|
|
|
export decoder;
|
|
|
|
export tyencode;
|
|
|
|
export tydecode;
|
2012-05-15 22:23:06 -05:00
|
|
|
export loader;
|
2012-05-29 22:38:46 -05:00
|
|
|
export filesearch;
|
2011-06-27 18:38:57 -05:00
|
|
|
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-07 14:22:39 -05:00
|
|
|
mod common;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-06-27 16:37:02 -05:00
|
|
|
mod tyencode;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-06-27 17:30:17 -05:00
|
|
|
mod tydecode;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-06-27 17:20:17 -05:00
|
|
|
mod encoder;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-06-27 17:53:27 -05:00
|
|
|
mod decoder;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-06-27 16:18:32 -05:00
|
|
|
mod creader;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-07 20:00:16 -05:00
|
|
|
mod cstore;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-08 00:18:38 -05:00
|
|
|
mod csearch;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-15 22:23:06 -05:00
|
|
|
mod loader;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2012-05-29 22:38:46 -05:00
|
|
|
mod filesearch;
|
2011-06-27 16:18:32 -05:00
|
|
|
}
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
mod driver {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2011-12-20 04:17:13 -06:00
|
|
|
mod driver;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
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 {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
2010-08-18 13:34:47 -05:00
|
|
|
mod common;
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports]
|
2011-07-05 04:48:19 -05:00
|
|
|
mod ppaux;
|
2010-08-18 13:34:47 -05:00
|
|
|
}
|
|
|
|
|
2010-07-12 19:47:40 -05:00
|
|
|
mod lib {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
|
|
|
#[legacy_exports]
|
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
|
|
|
|
// End:
|