2010-06-23 21:03:09 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-06-29 22:35:49 -07:00
|
|
|
#[link(name = "rustc",
|
2012-07-11 09:09:08 -07:00
|
|
|
vers = "0.3",
|
2011-06-29 22:35:49 -07:00
|
|
|
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
|
2012-03-28 13:42:17 -07:00
|
|
|
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];
|
2011-06-29 22:35:49 -07:00
|
|
|
|
2012-01-23 16:25:15 -08:00
|
|
|
#[comment = "The Rust compiler"];
|
2012-01-08 16:21:43 -08:00
|
|
|
#[license = "MIT"];
|
2012-01-17 14:40:59 -08:00
|
|
|
#[crate_type = "lib"];
|
2011-05-05 22:44:00 -04:00
|
|
|
|
2012-04-05 17:30:26 -07:00
|
|
|
#[no_core];
|
2010-06-23 21:03:09 -07: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 17:08:21 -07:00
|
|
|
// NB: transitional for stage0:
|
|
|
|
#[allow(unrecognized_lint)];
|
|
|
|
#[warn(no_unrecognized_warning)];
|
2012-06-04 18:34:24 -07:00
|
|
|
#[warn(no_vecs_not_implicitly_copyable)];
|
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 17:08:21 -07:00
|
|
|
// The new version:
|
|
|
|
#[allow(vecs_implicitly_copyable)];
|
2012-06-04 18:34:24 -07:00
|
|
|
|
2012-07-11 09:09:08 -07:00
|
|
|
use core(vers = "0.3");
|
|
|
|
use std(vers = "0.3");
|
|
|
|
use syntax(vers = "0.3");
|
2012-04-05 17:30:26 -07:00
|
|
|
|
|
|
|
import core::*;
|
2012-03-22 15:27:35 -07:00
|
|
|
|
2012-05-13 15:56:45 -07: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.
|
|
|
|
*/
|
|
|
|
import util_ = util;
|
|
|
|
import lib_ = lib;
|
|
|
|
import driver_ = driver;
|
|
|
|
import middle_ = middle;
|
2012-05-13 17:01:52 -07:00
|
|
|
import back_ = back;
|
2012-05-13 15:56:45 -07:00
|
|
|
|
2011-04-19 16:40:46 -07:00
|
|
|
mod middle {
|
2012-01-27 13:17:06 +01:00
|
|
|
mod trans {
|
|
|
|
mod common;
|
2012-02-21 15:22:55 +01:00
|
|
|
mod type_of;
|
2012-01-27 13:17:06 +01:00
|
|
|
mod build;
|
|
|
|
mod base;
|
|
|
|
mod alt;
|
|
|
|
mod uniq;
|
|
|
|
mod closure;
|
|
|
|
mod tvec;
|
|
|
|
mod impl;
|
2012-06-26 16:18:37 -07:00
|
|
|
mod foreign;
|
2012-05-14 17:57:39 -07:00
|
|
|
mod reflect;
|
2012-02-14 20:12:47 -08:00
|
|
|
mod shape;
|
2012-02-17 22:51:19 +01:00
|
|
|
mod debuginfo;
|
2012-03-12 16:31:22 +01:00
|
|
|
mod type_use;
|
2012-03-20 12:28:46 +01:00
|
|
|
mod reachable;
|
2012-01-27 13:17:06 +01:00
|
|
|
}
|
2011-04-19 16:40:46 -07:00
|
|
|
mod ty;
|
2012-05-22 10:54:12 -07:00
|
|
|
mod resolve3;
|
2012-05-15 08:29:22 -07:00
|
|
|
mod typeck {
|
2012-05-16 06:38:43 -07:00
|
|
|
mod check {
|
|
|
|
mod alt;
|
2012-05-16 08:01:41 -07:00
|
|
|
mod vtable;
|
|
|
|
mod writeback;
|
2012-05-16 08:51:16 -07:00
|
|
|
mod regionmanip;
|
2012-05-16 08:01:41 -07:00
|
|
|
mod regionck;
|
|
|
|
mod demand;
|
2012-05-16 08:51:16 -07:00
|
|
|
mod method;
|
2012-05-16 06:38:43 -07:00
|
|
|
}
|
2012-05-18 13:49:33 -07:00
|
|
|
mod rscope;
|
2012-05-15 08:29:22 -07:00
|
|
|
mod astconv;
|
2012-05-16 08:01:41 -07:00
|
|
|
mod infer;
|
2012-05-15 08:29:22 -07:00
|
|
|
mod collect;
|
2012-07-10 17:33:16 -07:00
|
|
|
mod coherence;
|
2012-05-15 08:29:22 -07:00
|
|
|
}
|
2012-03-26 12:39:20 +02:00
|
|
|
mod check_loop;
|
2011-07-25 13:45:09 +02:00
|
|
|
mod check_alt;
|
2011-11-08 18:26:02 -08:00
|
|
|
mod check_const;
|
2012-01-19 16:50:51 +08:00
|
|
|
mod lint;
|
2012-06-01 10:46:17 -07:00
|
|
|
mod borrowck {
|
|
|
|
mod check_loans;
|
|
|
|
mod gather_loans;
|
|
|
|
mod categorization;
|
|
|
|
mod loan;
|
|
|
|
mod preserve;
|
|
|
|
}
|
2012-05-19 05:52:01 -07:00
|
|
|
mod liveness;
|
2011-11-21 10:56:00 +01:00
|
|
|
mod block_use;
|
2011-07-27 17:49:00 -07:00
|
|
|
mod kind;
|
2011-07-18 17:26:37 -07:00
|
|
|
mod freevars;
|
2011-12-19 12:50:31 -08:00
|
|
|
mod capture;
|
2012-01-14 16:05:07 -08:00
|
|
|
mod pat_util;
|
2012-03-09 16:39:54 -08:00
|
|
|
mod region;
|
2012-03-22 14:56:56 -07:00
|
|
|
mod const_eval;
|
2012-05-14 16:15:11 -07:00
|
|
|
mod astencode;
|
2012-07-25 18:36:18 -07:00
|
|
|
mod lang_items;
|
2011-04-19 16:40:46 -07:00
|
|
|
}
|
|
|
|
|
2010-09-23 15:46:31 -07:00
|
|
|
mod front {
|
2011-06-29 22:32:08 -07:00
|
|
|
mod config;
|
2011-07-06 14:29:50 -07:00
|
|
|
mod test;
|
2012-01-26 15:20:29 -08:00
|
|
|
mod core_inject;
|
2012-05-10 17:18:04 -07:00
|
|
|
mod intrinsic_inject;
|
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-10-13 12:23:50 -07:00
|
|
|
mod x86_64;
|
2011-10-04 15:23:32 -07:00
|
|
|
mod rpath;
|
2011-10-12 12:29:08 -07:00
|
|
|
mod target_strs;
|
2010-09-23 15:46:31 -07:00
|
|
|
}
|
|
|
|
|
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;
|
2012-05-14 16:15:11 -07:00
|
|
|
export common;
|
|
|
|
export decoder;
|
|
|
|
export tyencode;
|
|
|
|
export tydecode;
|
2012-05-15 20:23:06 -07:00
|
|
|
export loader;
|
2012-05-29 20:38:46 -07:00
|
|
|
export filesearch;
|
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;
|
2012-05-15 20:23:06 -07:00
|
|
|
mod loader;
|
2012-05-29 20:38:46 -07:00
|
|
|
mod filesearch;
|
2011-06-27 14:18:32 -07:00
|
|
|
}
|
|
|
|
|
2010-06-23 21:03:09 -07:00
|
|
|
mod driver {
|
2011-12-20 18:17:13 +08:00
|
|
|
mod driver;
|
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
|
|
|
}
|
|
|
|
|
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
|
|
|
|
// End:
|