blob: dad27b706e60f42f1e6f410198c32ef17b496c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
|
// -*- rust -*-
#[link(name = "rustc",
vers = "0.4",
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
url = "https://github.com/mozilla/rust/tree/master/src/rustc")];
#[comment = "The Rust compiler"];
#[license = "MIT"];
#[crate_type = "lib"];
#[no_core];
#[legacy_modes];
#[legacy_exports];
#[allow(vecs_implicitly_copyable)];
#[allow(non_camel_case_types)];
#[allow(deprecated_mode)];
#[allow(deprecated_pattern)];
extern mod core(vers = "0.4");
extern mod std(vers = "0.4");
extern mod syntax(vers = "0.4");
use core::*;
/*
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.
*/
use util_ = util;
use lib_ = lib;
use driver_ = driver;
use middle_ = middle;
use back_ = back;
mod middle {
#[legacy_exports];
mod trans {
#[legacy_exports];
#[legacy_exports]
mod inline;
#[legacy_exports]
mod monomorphize;
#[legacy_exports]
mod controlflow;
#[legacy_exports]
mod glue;
#[legacy_exports]
mod datum;
#[legacy_exports]
mod callee;
#[legacy_exports]
mod expr;
#[legacy_exports]
mod common;
#[legacy_exports]
mod consts;
#[legacy_exports]
mod type_of;
#[legacy_exports]
mod build;
#[legacy_exports]
mod base;
#[legacy_exports]
mod alt;
#[legacy_exports]
mod uniq;
#[legacy_exports]
mod closure;
#[legacy_exports]
mod tvec;
#[legacy_exports]
mod meth;
#[legacy_exports]
mod foreign;
#[legacy_exports]
mod reflect;
#[legacy_exports]
mod shape;
#[legacy_exports]
mod debuginfo;
#[legacy_exports]
mod type_use;
#[legacy_exports]
mod reachable;
mod machine;
}
#[legacy_exports]
mod ty;
#[legacy_exports]
mod resolve;
mod typeck {
#[legacy_exports];
mod check {
#[legacy_exports];
#[legacy_exports]
mod alt;
#[legacy_exports]
mod vtable;
#[legacy_exports]
mod writeback;
#[legacy_exports]
mod regionmanip;
#[legacy_exports]
mod regionck;
#[legacy_exports]
mod demand;
#[legacy_exports]
mod method;
}
#[legacy_exports]
mod rscope;
#[legacy_exports]
mod astconv;
mod infer {
#[legacy_exports];
#[legacy_exports]
mod assignment;
#[legacy_exports]
mod combine;
#[legacy_exports]
mod glb;
#[legacy_exports]
mod integral;
#[legacy_exports]
mod lattice;
#[legacy_exports]
mod lub;
#[legacy_exports]
mod region_var_bindings;
#[legacy_exports]
mod resolve;
#[legacy_exports]
mod sub;
#[legacy_exports]
mod to_str;
#[legacy_exports]
mod unify;
}
#[legacy_exports]
mod collect;
#[legacy_exports]
mod coherence;
}
#[legacy_exports]
mod check_loop;
#[legacy_exports]
mod check_alt;
#[legacy_exports]
mod check_const;
#[legacy_exports]
mod lint;
mod borrowck {
#[legacy_exports];
#[legacy_exports]
mod check_loans;
#[legacy_exports]
mod gather_loans;
#[legacy_exports]
mod loan;
#[legacy_exports]
mod preserve;
}
#[legacy_exports]
mod mem_categorization;
#[legacy_exports]
mod liveness;
#[legacy_exports]
mod kind;
#[legacy_exports]
mod freevars;
#[legacy_exports]
mod capture;
#[legacy_exports]
mod pat_util;
#[legacy_exports]
mod region;
#[legacy_exports]
mod const_eval;
#[legacy_exports]
mod astencode;
#[legacy_exports]
mod lang_items;
#[legacy_exports]
mod privacy;
}
mod front {
#[legacy_exports];
#[legacy_exports]
mod config;
#[legacy_exports]
mod test;
#[legacy_exports]
mod core_inject;
#[legacy_exports]
mod intrinsic_inject;
}
mod back {
#[legacy_exports];
#[legacy_exports]
mod link;
#[legacy_exports]
mod abi;
#[legacy_exports]
mod upcall;
#[legacy_exports]
mod x86;
#[legacy_exports]
mod x86_64;
#[legacy_exports]
mod rpath;
#[legacy_exports]
mod target_strs;
}
mod metadata {
#[legacy_exports];
export encoder;
export creader;
export cstore;
export csearch;
export common;
export decoder;
export tyencode;
export tydecode;
export loader;
export filesearch;
#[legacy_exports]
mod common;
#[legacy_exports]
mod tyencode;
#[legacy_exports]
mod tydecode;
#[legacy_exports]
mod encoder;
#[legacy_exports]
mod decoder;
#[legacy_exports]
mod creader;
#[legacy_exports]
mod cstore;
#[legacy_exports]
mod csearch;
#[legacy_exports]
mod loader;
#[legacy_exports]
mod filesearch;
}
mod driver {
#[legacy_exports];
#[legacy_exports]
mod driver;
#[legacy_exports]
mod session;
}
mod util {
#[legacy_exports];
#[legacy_exports]
mod common;
#[legacy_exports]
mod ppaux;
}
mod lib {
#[legacy_exports];
#[legacy_exports]
mod llvm;
}
// Local Variables:
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End:
|