Skip to content

Commit b1a768e

Browse files
committed
---
yaml --- r: 274342 b: refs/heads/stable c: 63b4639 h: refs/heads/master
1 parent 8e8831d commit b1a768e

Some content is hidden

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

60 files changed

+569
-4532
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 53c2933d4406bc43b55d490722bf4ca062ab64eb
32+
refs/heads/stable: 63b4639691d3d064218055a63473515aee14f64c
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/configure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,6 @@ do
14091409
make_dir $h/test/debuginfo-gdb
14101410
make_dir $h/test/debuginfo-lldb
14111411
make_dir $h/test/codegen
1412-
make_dir $h/test/codegen-units
14131412
make_dir $h/test/rustdoc
14141413
done
14151414

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# armv7-unknown-linux-gnueabihf configuration
2+
CROSS_PREFIX_armv7-unknown-linux-gnueabihf=armv7-unknown-linux-gnueabihf-
3+
CC_armv7-unknown-linux-gnueabihf=gcc
4+
CXX_armv7-unknown-linux-gnueabihf=g++
5+
CPP_armv7-unknown-linux-gnueabihf=gcc -E
6+
AR_armv7-unknown-linux-gnueabihf=ar
7+
CFG_LIB_NAME_armv7-unknown-linux-gnueabihf=lib$(1).so
8+
CFG_STATIC_LIB_NAME_armv7-unknown-linux-gnueabihf=lib$(1).a
9+
CFG_LIB_GLOB_armv7-unknown-linux-gnueabihf=lib$(1)-*.so
10+
CFG_LIB_DSYM_GLOB_armv7-unknown-linux-gnueabihf=lib$(1)-*.dylib.dSYM
11+
CFG_JEMALLOC_CFLAGS_armv7-unknown-linux-gnueabihf := -D__arm__ $(CFLAGS)
12+
CFG_GCCISH_CFLAGS_armv7-unknown-linux-gnueabihf := -Wall -g -fPIC -D__arm__ $(CFLAGS)
13+
CFG_GCCISH_CXXFLAGS_armv7-unknown-linux-gnueabihf := -fno-rtti $(CXXFLAGS)
14+
CFG_GCCISH_LINK_FLAGS_armv7-unknown-linux-gnueabihf := -shared -fPIC -g
15+
CFG_GCCISH_DEF_FLAG_armv7-unknown-linux-gnueabihf := -Wl,--export-dynamic,--dynamic-list=
16+
CFG_LLC_FLAGS_armv7-unknown-linux-gnueabihf :=
17+
CFG_INSTALL_NAME_ar,-unknown-linux-gnueabihf =
18+
CFG_EXE_SUFFIX_armv7-unknown-linux-gnueabihf :=
19+
CFG_WINDOWSY_armv7-unknown-linux-gnueabihf :=
20+
CFG_UNIXY_armv7-unknown-linux-gnueabihf := 1
21+
CFG_LDPATH_armv7-unknown-linux-gnueabihf :=
22+
CFG_RUN_armv7-unknown-linux-gnueabihf=$(2)
23+
CFG_RUN_TARG_armv7-unknown-linux-gnueabihf=$(call CFG_RUN_armv7-unknown-linux-gnueabihf,,$(2))
24+
RUSTC_FLAGS_armv7-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp2,+neon
25+
RUSTC_CROSS_FLAGS_armv7-unknown-linux-gnueabihf :=
26+
CFG_GNU_TRIPLE_armv7-unknown-linux-gnueabihf := armv7-unknown-linux-gnueabihf

branches/stable/mk/tests.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
310310
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-gdb-exec \
311311
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-lldb-exec \
312312
check-stage$(1)-T-$(2)-H-$(3)-codegen-exec \
313-
check-stage$(1)-T-$(2)-H-$(3)-codegen-units-exec \
314313
check-stage$(1)-T-$(2)-H-$(3)-doc-exec \
315314
check-stage$(1)-T-$(2)-H-$(3)-pretty-exec
316315

@@ -474,7 +473,6 @@ DEBUGINFO_GDB_RS := $(wildcard $(S)src/test/debuginfo/*.rs)
474473
DEBUGINFO_LLDB_RS := $(wildcard $(S)src/test/debuginfo/*.rs)
475474
CODEGEN_RS := $(wildcard $(S)src/test/codegen/*.rs)
476475
CODEGEN_CC := $(wildcard $(S)src/test/codegen/*.cc)
477-
CODEGEN_UNITS_RS := $(wildcard $(S)src/test/codegen-units/*.rs)
478476
RUSTDOCCK_RS := $(wildcard $(S)src/test/rustdoc/*.rs)
479477

480478
RPASS_TESTS := $(RPASS_RS)
@@ -490,7 +488,6 @@ PRETTY_TESTS := $(PRETTY_RS)
490488
DEBUGINFO_GDB_TESTS := $(DEBUGINFO_GDB_RS)
491489
DEBUGINFO_LLDB_TESTS := $(DEBUGINFO_LLDB_RS)
492490
CODEGEN_TESTS := $(CODEGEN_RS) $(CODEGEN_CC)
493-
CODEGEN_UNITS_TESTS := $(CODEGEN_UNITS_RS)
494491
RUSTDOCCK_TESTS := $(RUSTDOCCK_RS)
495492

496493
CTEST_SRC_BASE_rpass = run-pass
@@ -553,11 +550,6 @@ CTEST_BUILD_BASE_codegen = codegen
553550
CTEST_MODE_codegen = codegen
554551
CTEST_RUNTOOL_codegen = $(CTEST_RUNTOOL)
555552

556-
CTEST_SRC_BASE_codegen-units = codegen-units
557-
CTEST_BUILD_BASE_codegen-units = codegen-units
558-
CTEST_MODE_codegen-units = codegen-units
559-
CTEST_RUNTOOL_codegen-units = $(CTEST_RUNTOOL)
560-
561553
CTEST_SRC_BASE_rustdocck = rustdoc
562554
CTEST_BUILD_BASE_rustdocck = rustdoc
563555
CTEST_MODE_rustdocck = rustdoc
@@ -681,7 +673,6 @@ CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS) \
681673
$(S)src/etc/lldb_batchmode.py \
682674
$(S)src/etc/lldb_rust_formatters.py
683675
CTEST_DEPS_codegen_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_TESTS)
684-
CTEST_DEPS_codegen-units_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_UNITS_TESTS)
685676
CTEST_DEPS_rustdocck_$(1)-T-$(2)-H-$(3) = $$(RUSTDOCCK_TESTS) \
686677
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
687678
$(S)src/etc/htmldocck.py
@@ -748,7 +739,7 @@ endif
748739
endef
749740

750741
CTEST_NAMES = rpass rpass-valgrind rpass-full rfail-full cfail-full rfail cfail pfail \
751-
bench debuginfo-gdb debuginfo-lldb codegen codegen-units rustdocck
742+
bench debuginfo-gdb debuginfo-lldb codegen rustdocck
752743

753744
$(foreach host,$(CFG_HOST), \
754745
$(eval $(foreach target,$(CFG_TARGET), \
@@ -926,7 +917,6 @@ TEST_GROUPS = \
926917
debuginfo-gdb \
927918
debuginfo-lldb \
928919
codegen \
929-
codegen-units \
930920
doc \
931921
$(foreach docname,$(DOC_NAMES),doc-$(docname)) \
932922
pretty \

branches/stable/src/compiletest/common.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ pub enum Mode {
2525
DebugInfoLldb,
2626
Codegen,
2727
Rustdoc,
28-
CodegenUnits
2928
}
3029

3130
impl FromStr for Mode {
@@ -42,7 +41,6 @@ impl FromStr for Mode {
4241
"debuginfo-gdb" => Ok(DebugInfoGdb),
4342
"codegen" => Ok(Codegen),
4443
"rustdoc" => Ok(Rustdoc),
45-
"codegen-units" => Ok(CodegenUnits),
4644
_ => Err(()),
4745
}
4846
}
@@ -61,7 +59,6 @@ impl fmt::Display for Mode {
6159
DebugInfoLldb => "debuginfo-lldb",
6260
Codegen => "codegen",
6361
Rustdoc => "rustdoc",
64-
CodegenUnits => "codegen-units",
6562
}, f)
6663
}
6764
}

branches/stable/src/compiletest/runtest.rs

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010

1111
use common::Config;
1212
use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind};
13-
use common::{Codegen, DebugInfoLldb, DebugInfoGdb, Rustdoc, CodegenUnits};
13+
use common::{Codegen, DebugInfoLldb, DebugInfoGdb, Rustdoc};
1414
use errors;
1515
use header::TestProps;
1616
use header;
1717
use procsrv;
1818
use util::logv;
1919

2020
use std::env;
21-
use std::collections::HashSet;
2221
use std::fmt;
2322
use std::fs::{self, File};
2423
use std::io::BufReader;
@@ -57,7 +56,6 @@ pub fn run(config: Config, testfile: &Path) {
5756
DebugInfoLldb => run_debuginfo_lldb_test(&config, &props, &testfile),
5857
Codegen => run_codegen_test(&config, &props, &testfile),
5958
Rustdoc => run_rustdoc_test(&config, &props, &testfile),
60-
CodegenUnits => run_codegen_units_test(&config, &props, &testfile),
6159
}
6260
}
6361

@@ -1749,44 +1747,3 @@ fn run_rustdoc_test(config: &Config, props: &TestProps, testfile: &Path) {
17491747
fatal_proc_rec("htmldocck failed!", &res);
17501748
}
17511749
}
1752-
1753-
fn run_codegen_units_test(config: &Config, props: &TestProps, testfile: &Path) {
1754-
let proc_res = compile_test(config, props, testfile);
1755-
1756-
if !proc_res.status.success() {
1757-
fatal_proc_rec("compilation failed!", &proc_res);
1758-
}
1759-
1760-
check_no_compiler_crash(&proc_res);
1761-
1762-
let prefix = "TRANS_ITEM ";
1763-
1764-
let actual: HashSet<String> = proc_res
1765-
.stdout
1766-
.lines()
1767-
.filter(|line| line.starts_with(prefix))
1768-
.map(|s| (&s[prefix.len()..]).to_string())
1769-
.collect();
1770-
1771-
let expected: HashSet<String> = errors::load_errors(testfile)
1772-
.iter()
1773-
.map(|e| e.msg.trim().to_string())
1774-
.collect();
1775-
1776-
if actual != expected {
1777-
let mut missing: Vec<_> = expected.difference(&actual).collect();
1778-
missing.sort();
1779-
1780-
let mut too_much: Vec<_> = actual.difference(&expected).collect();
1781-
too_much.sort();
1782-
1783-
println!("Expected and actual sets of codegen-items differ.\n\
1784-
These items should have been contained but were not:\n\n\
1785-
{}\n\n\
1786-
These items were contained but should not have been:\n\n\
1787-
{}\n\n",
1788-
missing.iter().fold("".to_string(), |s1, s2| s1 + "\n" + s2),
1789-
too_much.iter().fold("".to_string(), |s1, s2| s1 + "\n" + s2));
1790-
panic!();
1791-
}
1792-
}

branches/stable/src/librustc/front/map/definitions.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,33 +196,33 @@ impl DefPathData {
196196

197197
PositionalField |
198198
Field(hir::StructFieldKind::UnnamedField(_)) => {
199-
InternedString::new("{{field}}")
199+
InternedString::new("<field>")
200200
}
201201

202202
// note that this does not show up in user printouts
203203
CrateRoot => {
204-
InternedString::new("{{root}}")
204+
InternedString::new("<root>")
205205
}
206206

207207
// note that this does not show up in user printouts
208208
InlinedRoot(_) => {
209-
InternedString::new("{{inlined-root}}")
209+
InternedString::new("<inlined-root>")
210210
}
211211

212212
Misc => {
213-
InternedString::new("{{?}}")
213+
InternedString::new("?")
214214
}
215215

216216
ClosureExpr => {
217-
InternedString::new("{{closure}}")
217+
InternedString::new("<closure>")
218218
}
219219

220220
StructCtor => {
221-
InternedString::new("{{constructor}}")
221+
InternedString::new("<constructor>")
222222
}
223223

224224
Initializer => {
225-
InternedString::new("{{initializer}}")
225+
InternedString::new("<initializer>")
226226
}
227227
}
228228
}

branches/stable/src/librustc/middle/cstore.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ pub trait CrateStore<'tcx> : Any {
223223
-> FoundAst<'tcx>;
224224
fn maybe_get_item_mir(&self, tcx: &ty::ctxt<'tcx>, def: DefId)
225225
-> Option<Mir<'tcx>>;
226-
fn is_item_mir_available(&self, def: DefId) -> bool;
227-
228226
// This is basically a 1-based range of ints, which is a little
229227
// silly - I may fix that.
230228
fn crates(&self) -> Vec<ast::CrateNum>;
@@ -403,9 +401,6 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
403401
-> FoundAst<'tcx> { unimplemented!() }
404402
fn maybe_get_item_mir(&self, tcx: &ty::ctxt<'tcx>, def: DefId)
405403
-> Option<Mir<'tcx>> { unimplemented!() }
406-
fn is_item_mir_available(&self, def: DefId) -> bool {
407-
unimplemented!()
408-
}
409404

410405
// This is basically a 1-based range of ints, which is a little
411406
// silly - I may fix that.

branches/stable/src/librustc/middle/ty/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ impl<'tcx> ctxt<'tcx> {
563563
const_qualif_map: RefCell::new(NodeMap()),
564564
custom_coerce_unsized_kinds: RefCell::new(DefIdMap()),
565565
cast_kinds: RefCell::new(NodeMap()),
566-
fragment_infos: RefCell::new(DefIdMap())
566+
fragment_infos: RefCell::new(DefIdMap()),
567567
}, f)
568568
}
569569
}

branches/stable/src/librustc/middle/ty/maps.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use middle::def_id::DefId;
1313
use middle::ty;
1414
use std::marker::PhantomData;
1515
use std::rc::Rc;
16-
use syntax::{attr, ast};
16+
use syntax::attr;
1717

1818
macro_rules! dep_map_ty {
1919
($ty_name:ident : $node_name:ident ($key:ty) -> $value:ty) => {
@@ -42,4 +42,3 @@ dep_map_ty! { InherentImpls: InherentImpls(DefId) -> Rc<Vec<DefId>> }
4242
dep_map_ty! { ImplItems: ImplItems(DefId) -> Vec<ty::ImplOrTraitItemId> }
4343
dep_map_ty! { TraitItems: TraitItems(DefId) -> Rc<Vec<ty::ImplOrTraitItem<'tcx>>> }
4444
dep_map_ty! { ReprHints: ReprHints(DefId) -> Rc<Vec<attr::ReprAttr>> }
45-
dep_map_ty! { InlinedClosures: Hir(DefId) -> ast::NodeId }

branches/stable/src/librustc/mir/repr.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use std::{iter, u32};
2525
use std::ops::{Index, IndexMut};
2626

2727
/// Lowered representation of a single function.
28-
#[derive(Clone, RustcEncodable, RustcDecodable)]
28+
#[derive(RustcEncodable, RustcDecodable)]
2929
pub struct Mir<'tcx> {
3030
/// List of basic blocks. References to basic block use a newtyped index type `BasicBlock`
3131
/// that indexes into this vector.
@@ -146,7 +146,7 @@ pub enum BorrowKind {
146146

147147
// A "variable" is a binding declared by the user as part of the fn
148148
// decl, a let, etc.
149-
#[derive(Clone, RustcEncodable, RustcDecodable)]
149+
#[derive(RustcEncodable, RustcDecodable)]
150150
pub struct VarDecl<'tcx> {
151151
pub mutability: Mutability,
152152
pub name: Name,
@@ -155,7 +155,7 @@ pub struct VarDecl<'tcx> {
155155

156156
// A "temp" is a temporary that we place on the stack. They are
157157
// anonymous, always mutable, and have only a type.
158-
#[derive(Clone, RustcEncodable, RustcDecodable)]
158+
#[derive(RustcEncodable, RustcDecodable)]
159159
pub struct TempDecl<'tcx> {
160160
pub ty: Ty<'tcx>,
161161
}
@@ -171,7 +171,7 @@ pub struct TempDecl<'tcx> {
171171
//
172172
// there is only one argument, of type `(i32, u32)`, but two bindings
173173
// (`x` and `y`).
174-
#[derive(Clone, RustcEncodable, RustcDecodable)]
174+
#[derive(RustcEncodable, RustcDecodable)]
175175
pub struct ArgDecl<'tcx> {
176176
pub ty: Ty<'tcx>,
177177
}
@@ -207,14 +207,14 @@ impl Debug for BasicBlock {
207207
///////////////////////////////////////////////////////////////////////////
208208
// BasicBlock and Terminator
209209

210-
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
210+
#[derive(Debug, RustcEncodable, RustcDecodable)]
211211
pub struct BasicBlockData<'tcx> {
212212
pub statements: Vec<Statement<'tcx>>,
213213
pub terminator: Option<Terminator<'tcx>>,
214214
pub is_cleanup: bool,
215215
}
216216

217-
#[derive(Clone, RustcEncodable, RustcDecodable)]
217+
#[derive(RustcEncodable, RustcDecodable)]
218218
pub enum Terminator<'tcx> {
219219
/// block should have one successor in the graph; we jump there
220220
Goto {
@@ -481,13 +481,13 @@ impl<'tcx> Terminator<'tcx> {
481481
///////////////////////////////////////////////////////////////////////////
482482
// Statements
483483

484-
#[derive(Clone, RustcEncodable, RustcDecodable)]
484+
#[derive(RustcEncodable, RustcDecodable)]
485485
pub struct Statement<'tcx> {
486486
pub span: Span,
487487
pub kind: StatementKind<'tcx>,
488488
}
489489

490-
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
490+
#[derive(Debug, RustcEncodable, RustcDecodable)]
491491
pub enum StatementKind<'tcx> {
492492
Assign(Lvalue<'tcx>, Rvalue<'tcx>),
493493
Drop(DropKind, Lvalue<'tcx>),
@@ -721,7 +721,7 @@ pub enum Rvalue<'tcx> {
721721
InlineAsm(InlineAsm),
722722
}
723723

724-
#[derive(Clone, Copy, Debug, PartialEq, Eq, RustcEncodable, RustcDecodable)]
724+
#[derive(Clone, Debug, PartialEq, Eq, RustcEncodable, RustcDecodable)]
725725
pub enum CastKind {
726726
Misc,
727727

branches/stable/src/librustc/session/config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
643643
"keep the AST after lowering it to HIR"),
644644
show_span: Option<String> = (None, parse_opt_string,
645645
"show spans for compiler debugging (expr|pat|ty)"),
646-
print_trans_items: Option<String> = (None, parse_opt_string,
647-
"print the result of the translation item collection pass"),
648646
}
649647

650648
pub fn default_lib_output() -> CrateType {

0 commit comments

Comments
 (0)