Skip to content

Commit 98b1c9e

Browse files
AatchJames Miller
authored andcommitted
Move trans mod items into trans/mod.rs
1 parent 998e41a commit 98b1c9e

File tree

2 files changed

+45
-35
lines changed

2 files changed

+45
-35
lines changed

src/librustc/middle/trans/mod.rs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
pub mod macros;
12+
pub mod inline;
13+
pub mod monomorphize;
14+
pub mod controlflow;
15+
pub mod glue;
16+
pub mod datum;
17+
pub mod write_guard;
18+
pub mod callee;
19+
pub mod expr;
20+
pub mod common;
21+
pub mod consts;
22+
pub mod type_of;
23+
pub mod build;
24+
pub mod base;
25+
pub mod _match;
26+
pub mod uniq;
27+
pub mod closure;
28+
pub mod tvec;
29+
pub mod meth;
30+
pub mod cabi;
31+
pub mod cabi_x86;
32+
pub mod cabi_x86_64;
33+
pub mod cabi_arm;
34+
pub mod cabi_mips;
35+
pub mod foreign;
36+
pub mod reflect;
37+
pub mod shape;
38+
pub mod debuginfo;
39+
pub mod type_use;
40+
pub mod reachable;
41+
pub mod machine;
42+
pub mod adt;
43+
pub mod asm;

src/librustc/rustc.rc

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -61,41 +61,8 @@ use syntax::codemap;
6161
use syntax::diagnostic;
6262

6363
pub mod middle {
64-
pub mod trans {
65-
pub mod macros;
66-
pub mod inline;
67-
pub mod monomorphize;
68-
pub mod controlflow;
69-
pub mod glue;
70-
pub mod datum;
71-
pub mod write_guard;
72-
pub mod callee;
73-
pub mod expr;
74-
pub mod common;
75-
pub mod consts;
76-
pub mod type_of;
77-
pub mod build;
78-
pub mod base;
79-
pub mod _match;
80-
pub mod uniq;
81-
pub mod closure;
82-
pub mod tvec;
83-
pub mod meth;
84-
pub mod cabi;
85-
pub mod cabi_x86;
86-
pub mod cabi_x86_64;
87-
pub mod cabi_arm;
88-
pub mod cabi_mips;
89-
pub mod foreign;
90-
pub mod reflect;
91-
pub mod shape;
92-
pub mod debuginfo;
93-
pub mod type_use;
94-
pub mod reachable;
95-
pub mod machine;
96-
pub mod adt;
97-
pub mod asm;
98-
}
64+
#[path = "trans/mod.rs"]
65+
pub mod trans;
9966
pub mod ty;
10067
pub mod subst;
10168
pub mod resolve;

0 commit comments

Comments
 (0)