Skip to content

Commit 552af51

Browse files
committed
Rollup merge of rust-lang#32570 - eddyb:tis-but-a-front, r=nikomatsakis
r? @nikomatsakis Conflicts: src/librustc_save_analysis/lib.rs src/libsyntax/ast_util.rs
2 parents af7b00b + e8a8dfb commit 552af51

File tree

235 files changed

+1307
-2183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+1307
-2183
lines changed

mk/crates.mk

+15-16
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TARGET_CRATES := libc std term \
5656
alloc_system alloc_jemalloc
5757
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
59-
rustc_data_structures rustc_front rustc_platform_intrinsics \
59+
rustc_data_structures rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
6161
rustc_const_eval rustc_const_math
6262
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
@@ -93,38 +93,37 @@ DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
9393
DEPS_syntax_ext := syntax fmt_macros
9494

9595
DEPS_rustc_const_math := std syntax log serialize
96-
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize rustc_front \
96+
DEPS_rustc_const_eval := rustc_const_math rustc syntax log serialize \
9797
rustc_back graphviz
9898

99-
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\
99+
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml \
100100
log graphviz rustc_back rustc_data_structures\
101101
rustc_const_math
102-
DEPS_rustc_back := std syntax rustc_front flate log libc
103-
DEPS_rustc_borrowck := rustc rustc_front rustc_mir log graphviz syntax
102+
DEPS_rustc_back := std syntax flate log libc
103+
DEPS_rustc_borrowck := rustc rustc_mir log graphviz syntax
104104
DEPS_rustc_data_structures := std log serialize
105105
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
106106
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
107-
rustc_trans rustc_privacy rustc_lint rustc_front rustc_plugin \
107+
rustc_trans rustc_privacy rustc_lint rustc_plugin \
108108
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval
109-
DEPS_rustc_front := std syntax log serialize
110109
DEPS_rustc_lint := rustc log syntax rustc_const_eval
111110
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
112-
DEPS_rustc_metadata := rustc rustc_front syntax rbml rustc_const_math
113-
DEPS_rustc_passes := syntax rustc core rustc_front rustc_const_eval
114-
DEPS_rustc_mir := rustc rustc_front syntax rustc_const_math rustc_const_eval
115-
DEPS_rustc_resolve := arena rustc rustc_front log syntax
111+
DEPS_rustc_metadata := rustc syntax rbml rustc_const_math
112+
DEPS_rustc_passes := syntax rustc core rustc_const_eval
113+
DEPS_rustc_mir := rustc syntax rustc_const_math rustc_const_eval
114+
DEPS_rustc_resolve := arena rustc log syntax
116115
DEPS_rustc_platform_intrinsics := std
117116
DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
118-
DEPS_rustc_privacy := rustc rustc_front log syntax
117+
DEPS_rustc_privacy := rustc log syntax
119118
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
120-
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics \
119+
log syntax serialize rustc_llvm rustc_platform_intrinsics \
121120
rustc_const_math rustc_const_eval
122-
DEPS_rustc_save_analysis := rustc log syntax rustc_front
123-
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics rustc_const_math \
121+
DEPS_rustc_save_analysis := rustc log syntax
122+
DEPS_rustc_typeck := rustc syntax rustc_platform_intrinsics rustc_const_math \
124123
rustc_const_eval
125124

126125
DEPS_rustdoc := rustc rustc_driver native:hoedown serialize getopts \
127-
test rustc_lint rustc_front rustc_const_eval
126+
test rustc_lint rustc_const_eval
128127

129128

130129
TOOL_DEPS_compiletest := test getopts log

src/librustc/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ rustc_back = { path = "../librustc_back" }
1919
rustc_bitflags = { path = "../librustc_bitflags" }
2020
rustc_const_math = { path = "../librustc_const_math" }
2121
rustc_data_structures = { path = "../librustc_data_structures" }
22-
rustc_front = { path = "../librustc_front" }
2322
serialize = { path = "../libserialize" }
2423
syntax = { path = "../libsyntax" }

src/librustc/cfg/construct.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
use rustc_data_structures::graph;
1212
use cfg::*;
13-
use middle::def::Def;
14-
use middle::pat_util;
13+
use hir::def::Def;
14+
use hir::pat_util;
1515
use ty::{self, TyCtxt};
1616
use syntax::ast;
1717
use syntax::ptr::P;
1818

19-
use rustc_front::hir::{self, PatKind};
19+
use hir::{self, PatKind};
2020

2121
struct CFGBuilder<'a, 'tcx: 'a> {
2222
tcx: &'a TyCtxt<'tcx>,
@@ -257,7 +257,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
257257
self.match_(expr.id, &discr, &arms, pred)
258258
}
259259

260-
hir::ExprBinary(op, ref l, ref r) if ::rustc_front::util::lazy_binop(op.node) => {
260+
hir::ExprBinary(op, ref l, ref r) if op.node.is_lazy() => {
261261
//
262262
// [pred]
263263
// |

src/librustc/cfg/graphviz.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use graphviz::IntoCow;
1717

1818
use syntax::ast;
1919

20-
use front::map as ast_map;
20+
use hir::map as ast_map;
2121
use cfg;
2222

2323
pub type Node<'a> = (cfg::CFGIndex, &'a cfg::CFGNode);

src/librustc/cfg/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use rustc_data_structures::graph;
1515
use ty::TyCtxt;
1616
use syntax::ast;
17-
use rustc_front::hir;
17+
use hir;
1818

1919
mod construct;
2020
pub mod graphviz;

src/librustc/dep_graph/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
// except according to those terms.
1010

1111
use self::thread::{DepGraphThreadData, DepMessage};
12-
use middle::def_id::DefId;
12+
use hir::def_id::DefId;
1313
use syntax::ast::NodeId;
1414
use ty::TyCtxt;
15-
use rustc_front::hir;
16-
use rustc_front::intravisit::Visitor;
15+
use hir;
16+
use hir::intravisit::Visitor;
1717
use std::rc::Rc;
1818

1919
mod dep_tracking_map;
File renamed without changes.

src/librustc/middle/def.rs renamed to src/librustc/hir/def.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use middle::def_id::DefId;
11+
use hir::def_id::DefId;
1212
use ty::subst::ParamSpace;
1313
use util::nodemap::NodeMap;
1414
use syntax::ast;
15-
use rustc_front::hir;
15+
use hir;
1616

1717
#[derive(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
1818
pub enum Def {
File renamed without changes.

src/librustc_front/fold.rs renamed to src/librustc/hir/fold.rs

-8
Original file line numberDiff line numberDiff line change
@@ -908,14 +908,6 @@ pub fn noop_fold_item<T: Folder>(item: Item, folder: &mut T) -> Item {
908908
let Item { id, name, attrs, node, vis, span } = item;
909909
let id = folder.new_id(id);
910910
let node = folder.fold_item_underscore(node);
911-
// FIXME: we should update the impl_pretty_name, but it uses pretty printing.
912-
// let ident = match node {
913-
// // The node may have changed, recompute the "pretty" impl name.
914-
// ItemImpl(_, _, _, ref maybe_trait, ref ty, _) => {
915-
// impl_pretty_name(maybe_trait, Some(&**ty))
916-
// }
917-
// _ => ident
918-
// };
919911

920912
Item {
921913
id: id,

0 commit comments

Comments
 (0)