Skip to content

Commit f2b5461

Browse files
committed
---
yaml --- r: 95780 b: refs/heads/dist-snap c: 54f4dcd h: refs/heads/master v: v3
1 parent a4d054f commit f2b5461

Some content is hidden

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

55 files changed

+481
-1377
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 6789a77fa02b5f7c3f9ca0261a5387a951d23caf
9+
refs/heads/dist-snap: 54f4dcd76aafe33c553f6b58fe3e808f055465e1
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/mk/tests.mk

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -465,17 +465,6 @@ $(foreach host,$(CFG_HOST_TRIPLES), \
465465
$(eval $(call DEF_TEST_CRATE_RULES,$(stage),$(target),$(host),$(crate))) \
466466
))))))
467467

468-
# FIXME (#10104): Raise the stack size to work around rustpkg bypassing
469-
# the code in rustc that would take care of it.
470-
define DEF_RUSTPKG_STACK_FIX
471-
$$(call TEST_OK_FILE,$(1),$(2),$(3),rustpkg): export RUST_MIN_STACK=8000000
472-
endef
473-
474-
$(foreach host,$(CFG_HOST_TRIPLES), \
475-
$(foreach target,$(CFG_TARGET_TRIPLES), \
476-
$(foreach stage,$(STAGES), \
477-
$(eval $(call DEF_RUSTPKG_STACK_FIX,$(stage),$(target),$(host))))))
478-
479468

480469
######################################################################
481470
# Rules for the compiletest tests (rpass, rfail, etc.)

branches/dist-snap/src/compiletest/runtest.rs

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
281281
};
282282
let config = &mut config;
283283
let cmds = props.debugger_cmds.connect("\n");
284-
let check_lines = &props.check_lines;
284+
let check_lines = props.check_lines.clone();
285285

286286
// compile test file (it shoud have 'compile-flags:-g' in the header)
287287
let mut ProcRes = compile_test(config, props, testfile);
@@ -315,34 +315,11 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
315315

316316
let num_check_lines = check_lines.len();
317317
if num_check_lines > 0 {
318-
// Allow check lines to leave parts unspecified (e.g., uninitialized
319-
// bits in the wrong case of an enum) with the notation "[...]".
320-
let check_fragments: ~[~[&str]] = check_lines.map(|s| s.split_str_iter("[...]").collect());
321318
// check if each line in props.check_lines appears in the
322319
// output (in order)
323320
let mut i = 0u;
324321
for line in ProcRes.stdout.line_iter() {
325-
let mut rest = line.trim();
326-
let mut first = true;
327-
let mut failed = false;
328-
for &frag in check_fragments[i].iter() {
329-
let found = if first {
330-
if rest.starts_with(frag) { Some(0) } else { None }
331-
} else {
332-
rest.find_str(frag)
333-
};
334-
match found {
335-
None => {
336-
failed = true;
337-
break;
338-
}
339-
Some(i) => {
340-
rest = rest.slice_from(i + frag.len());
341-
}
342-
}
343-
first = false;
344-
}
345-
if !failed && rest.len() == 0 {
322+
if check_lines[i].trim() == line.trim() {
346323
i += 1u;
347324
}
348325
if i == num_check_lines {

branches/dist-snap/src/libextra/enum_set.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ mod test {
140140
use enum_set::*;
141141

142142
#[deriving(Eq)]
143-
#[repr(uint)]
144143
enum Foo {
145144
A, B, C
146145
}

branches/dist-snap/src/libextra/extra.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ pub mod extra {
118118
pub use std::clone;
119119
pub use std::condition;
120120
pub use std::cmp;
121+
// NOTE: Remove import after next snapshot
122+
#[cfg(stage0)]
121123
pub use std::sys;
122124
pub use std::unstable;
123125
pub use std::str;

branches/dist-snap/src/librustc/lib/llvm.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ pub static Vector: TypeKind = 13;
147147
pub static Metadata: TypeKind = 14;
148148
pub static X86_MMX: TypeKind = 15;
149149

150-
#[repr(C)]
151150
pub enum AtomicBinOp {
152151
Xchg = 0,
153152
Add = 1,
@@ -162,7 +161,6 @@ pub enum AtomicBinOp {
162161
UMin = 10,
163162
}
164163

165-
#[repr(C)]
166164
pub enum AtomicOrdering {
167165
NotAtomic = 0,
168166
Unordered = 1,
@@ -175,7 +173,6 @@ pub enum AtomicOrdering {
175173
}
176174

177175
// Consts for the LLVMCodeGenFileType type (in include/llvm/c/TargetMachine.h)
178-
#[repr(C)]
179176
pub enum FileType {
180177
AssemblyFile = 0,
181178
ObjectFile = 1
@@ -197,23 +194,20 @@ pub enum AsmDialect {
197194
}
198195

199196
#[deriving(Eq)]
200-
#[repr(C)]
201197
pub enum CodeGenOptLevel {
202198
CodeGenLevelNone = 0,
203199
CodeGenLevelLess = 1,
204200
CodeGenLevelDefault = 2,
205201
CodeGenLevelAggressive = 3,
206202
}
207203

208-
#[repr(C)]
209204
pub enum RelocMode {
210205
RelocDefault = 0,
211206
RelocStatic = 1,
212207
RelocPIC = 2,
213208
RelocDynamicNoPic = 3,
214209
}
215210

216-
#[repr(C)]
217211
pub enum CodeGenModel {
218212
CodeModelDefault = 0,
219213
CodeModelJITDefault = 1,

branches/dist-snap/src/librustc/metadata/common.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ pub static tag_items_data_item_reexport_name: uint = 0x4f;
112112

113113
// used to encode crate_ctxt side tables
114114
#[deriving(Eq)]
115-
#[repr(uint)]
116115
pub enum astencode_tag { // Reserves 0x50 -- 0x6f
117116
tag_ast = 0x50,
118117

@@ -144,7 +143,7 @@ impl astencode_tag {
144143
pub fn from_uint(value : uint) -> Option<astencode_tag> {
145144
let is_a_tag = first_astencode_tag <= value && value <= last_astencode_tag;
146145
if !is_a_tag { None } else {
147-
Some(unsafe { cast::transmute(value) })
146+
Some(unsafe { cast::transmute(value as int) })
148147
}
149148
}
150149
}

branches/dist-snap/src/librustc/metadata/encoder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ fn encode_info_for_item(ecx: &EncodeContext,
989989
encode_family(ebml_w, 't');
990990
encode_bounds_and_type(ebml_w, ecx, &lookup_item_type(tcx, def_id));
991991
encode_name(ecx, ebml_w, item.ident);
992-
encode_attributes(ebml_w, item.attrs);
993992
for v in (*enum_definition).variants.iter() {
994993
encode_variant_id(ebml_w, local_def(v.node.id));
995994
}

branches/dist-snap/src/librustc/middle/lint.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
//! Context itself, span_lint should be used instead of add_lint.
3535
3636
use driver::session;
37-
use middle::trans::adt; // for `adt::is_ffi_safe`
3837
use middle::ty;
3938
use middle::pat_util;
4039
use metadata::csearch;
@@ -628,14 +627,6 @@ fn check_item_ctypes(cx: &Context, it: &ast::item) {
628627
"found rust type `uint` in foreign module, while \
629628
libc::c_uint or libc::c_ulong should be used");
630629
}
631-
ast::DefTy(def_id) => {
632-
if !adt::is_ffi_safe(cx.tcx, def_id) {
633-
cx.span_lint(ctypes, ty.span,
634-
"found enum type without foreign-function-safe \
635-
representation annotation in foreign module");
636-
// NOTE this message could be more helpful
637-
}
638-
}
639630
_ => ()
640631
}
641632
}

0 commit comments

Comments
 (0)