Skip to content

Commit 4fa7706

Browse files
committed
---
yaml --- r: 100817 b: refs/heads/snap-stage3 c: 90311fc h: refs/heads/master i: 100815: c320899 v: v3
1 parent c914151 commit 4fa7706

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

+324
-506
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e3b1f3c443c048913e2d573fcc5a9c2be3484a78
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9b173edf863c3f04a0d8534bdd3e3cbef31c711a
4+
refs/heads/snap-stage3: 90311fc68fb484310df9ffc614e592dee30644ae
55
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/crates.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ DEPS_extra := std term sync serialize getopts collections
6060
DEPS_green := std native:context_switch
6161
DEPS_rustuv := std native:uv native:uv_support
6262
DEPS_native := std
63-
DEPS_syntax := std term serialize collections
63+
DEPS_syntax := std extra term serialize collections
6464
DEPS_rustc := syntax native:rustllvm flate arena serialize sync getopts \
65-
collections extra
65+
collections
6666
DEPS_rustdoc := rustc native:sundown serialize sync getopts collections
6767
DEPS_flate := std native:miniz
6868
DEPS_arena := std collections

branches/snap-stage3/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ COMPRT_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),compiler-rt)
236236
COMPRT_LIB_$(1) := $$(RT_OUTPUT_DIR_$(1))/$$(COMPRT_NAME_$(1))
237237
COMPRT_BUILD_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/compiler-rt
238238

239-
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS) $$(MKFILE_DEPS)
239+
$$(COMPRT_LIB_$(1)): $$(COMPRT_DEPS)
240240
@$$(call E, make: compiler-rt)
241241
$$(Q)$$(MAKE) -C "$(S)src/compiler-rt" \
242242
ProjSrcRoot="$(S)src/compiler-rt" \

branches/snap-stage3/src/compiletest/header.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ pub struct TestProps {
3030
check_lines: ~[~str],
3131
// Flag to force a crate to be built with the host architecture
3232
force_host: bool,
33-
// Check stdout for error-pattern output as well as stderr
34-
check_stdout: bool,
3533
}
3634

3735
// Load any test directives embedded in the file
@@ -44,7 +42,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
4442
let mut debugger_cmds = ~[];
4543
let mut check_lines = ~[];
4644
let mut force_host = false;
47-
let mut check_stdout = false;
4845
iter_header(testfile, |ln| {
4946
match parse_error_pattern(ln) {
5047
Some(ep) => error_patterns.push(ep),
@@ -63,10 +60,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
6360
force_host = parse_force_host(ln);
6461
}
6562

66-
if !check_stdout {
67-
check_stdout = parse_check_stdout(ln);
68-
}
69-
7063
match parse_aux_build(ln) {
7164
Some(ab) => { aux_builds.push(ab); }
7265
None => {}
@@ -98,7 +91,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
9891
debugger_cmds: debugger_cmds,
9992
check_lines: check_lines,
10093
force_host: force_host,
101-
check_stdout: check_stdout,
10294
};
10395
}
10496

@@ -163,10 +155,6 @@ fn parse_force_host(line: &str) -> bool {
163155
parse_name_directive(line, "force-host")
164156
}
165157

166-
fn parse_check_stdout(line: &str) -> bool {
167-
parse_name_directive(line, "check-stdout")
168-
}
169-
170158
fn parse_exec_env(line: &str) -> Option<(~str, ~str)> {
171159
parse_name_value_directive(line, ~"exec-env").map(|nv| {
172160
// nv is either FOO or FOO=BAR

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,7 @@ fn check_error_patterns(props: &TestProps,
452452
let mut next_err_idx = 0u;
453453
let mut next_err_pat = &props.error_patterns[next_err_idx];
454454
let mut done = false;
455-
let output_to_check = if props.check_stdout {
456-
ProcRes.stdout + ProcRes.stderr
457-
} else {
458-
ProcRes.stderr.clone()
459-
};
460-
for line in output_to_check.lines() {
455+
for line in ProcRes.stderr.lines() {
461456
if line.contains(*next_err_pat) {
462457
debug!("found error pattern {}", *next_err_pat);
463458
next_err_idx += 1u;

branches/snap-stage3/src/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ they don't contain references to names that aren't actually defined.
5757
5858
# Getting started
5959

60-
> **WARNING**: The tarball and installer links are for the most recent
61-
> release, not master. To use master, you **must** build from [git].
60+
> **NOTE**: The tarball and installer links are for the most recent release,
61+
> not master.
6262
6363
The Rust compiler currently must be built from a [tarball] or [git], unless
6464
you are on Windows, in which case using the [installer][win-exe] is

branches/snap-stage3/src/etc/emacs/rust-mode.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
'("as"
131131
"break"
132132
"continue"
133-
"crate"
134133
"do"
135134
"else" "enum" "extern"
136135
"false" "fn" "for"

branches/snap-stage3/src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<keyword>break</keyword>
4141
<keyword>const</keyword>
4242
<keyword>continue</keyword>
43-
<keyword>crate</keyword>
4443
<keyword>do</keyword>
4544
<keyword>drop</keyword>
4645
<keyword>else</keyword>

branches/snap-stage3/src/etc/kate/rust.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<item> as </item>
2020
<item> break </item>
2121
<item> continue </item>
22-
<item> crate </item>
2322
<item> do </item>
2423
<item> drop </item>
2524
<item> else </item>

branches/snap-stage3/src/etc/vim/syntax/rust.vim

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: Patrick Walton <[email protected]>
44
" Maintainer: Ben Blum <[email protected]>
55
" Maintainer: Chris Morgan <[email protected]>
6-
" Last Change: 2014 Feb 14
6+
" Last Change: 2014 Jan 4
77

88
if version < 600
99
syntax clear
@@ -18,8 +18,7 @@ syn keyword rustOperator as
1818

1919
syn match rustAssert "\<assert\(\w\)*!" contained
2020
syn match rustFail "\<fail\(\w\)*!" contained
21-
syn keyword rustKeyword break continue do
22-
syn keyword rustKeyword extern nextgroup=rustExternCrate skipwhite
21+
syn keyword rustKeyword break continue do extern
2322
syn keyword rustKeyword for in if impl let
2423
syn keyword rustKeyword loop once priv pub
2524
syn keyword rustKeyword return
@@ -32,10 +31,6 @@ syn keyword rustKeyword proc
3231
syn keyword rustStorage mut ref static
3332
syn keyword rustObsoleteStorage const
3433

35-
syn keyword rustInvalidBareKeyword crate
36-
37-
syn keyword rustExternCrate crate contained nextgroup=rustIdentifier skipwhite
38-
3934
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
4035
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
4136

@@ -86,7 +81,7 @@ syn keyword rustTrait OrdIterator MutableDoubleEndedIterator ExactSize
8681

8782
syn keyword rustTrait Algebraic Trigonometric Exponential Hyperbolic
8883
syn keyword rustTrait Bitwise Bounded Integer Fractional Real RealExt
89-
syn keyword rustTrait Num NumCast CheckedAdd CheckedSub CheckedMul CheckedDiv
84+
syn keyword rustTrait Num NumCast CheckedAdd CheckedSub CheckedMul
9085
syn keyword rustTrait Orderable Signed Unsigned Round
9186
syn keyword rustTrait Primitive Int Float ToStrRadix ToPrimitive FromPrimitive
9287
syn keyword rustTrait GenericPath Path PosixPath WindowsPath
@@ -250,8 +245,6 @@ hi def link rustDeriving PreProc
250245
hi def link rustStorage StorageClass
251246
hi def link rustObsoleteStorage Error
252247
hi def link rustLifetime Special
253-
hi def link rustInvalidBareKeyword Error
254-
hi def link rustExternCrate rustKeyword
255248

256249
" Other Suggestions:
257250
" hi rustAttribute ctermfg=cyan

branches/snap-stage3/src/libcollections/bitv.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,6 @@ mod tests {
15611561
let mut bitv = 0 as uint;
15621562
b.iter(|| {
15631563
bitv |= (1 << ((r.next_u32() as uint) % uint::BITS));
1564-
&bitv
15651564
})
15661565
}
15671566

@@ -1571,7 +1570,6 @@ mod tests {
15711570
let mut bitv = SmallBitv::new(uint::BITS);
15721571
b.iter(|| {
15731572
bitv.set((r.next_u32() as uint) % uint::BITS, true);
1574-
&bitv
15751573
})
15761574
}
15771575

@@ -1581,7 +1579,6 @@ mod tests {
15811579
let mut bitv = BigBitv::new(~[0]);
15821580
b.iter(|| {
15831581
bitv.set((r.next_u32() as uint) % uint::BITS, true);
1584-
&bitv
15851582
})
15861583
}
15871584

@@ -1593,7 +1590,6 @@ mod tests {
15931590
let mut bitv = BigBitv::new(storage);
15941591
b.iter(|| {
15951592
bitv.set((r.next_u32() as uint) % BENCH_BITS, true);
1596-
&bitv
15971593
})
15981594
}
15991595

@@ -1603,7 +1599,6 @@ mod tests {
16031599
let mut bitv = Bitv::new(BENCH_BITS, false);
16041600
b.iter(|| {
16051601
bitv.set((r.next_u32() as uint) % BENCH_BITS, true);
1606-
&bitv
16071602
})
16081603
}
16091604

@@ -1613,7 +1608,6 @@ mod tests {
16131608
let mut bitv = Bitv::new(uint::BITS, false);
16141609
b.iter(|| {
16151610
bitv.set((r.next_u32() as uint) % uint::BITS, true);
1616-
&bitv
16171611
})
16181612
}
16191613

@@ -1623,7 +1617,6 @@ mod tests {
16231617
let mut bitv = BitvSet::new();
16241618
b.iter(|| {
16251619
bitv.insert((r.next_u32() as uint) % uint::BITS);
1626-
&bitv
16271620
})
16281621
}
16291622

@@ -1633,7 +1626,6 @@ mod tests {
16331626
let mut bitv = BitvSet::new();
16341627
b.iter(|| {
16351628
bitv.insert((r.next_u32() as uint) % BENCH_BITS);
1636-
&bitv
16371629
})
16381630
}
16391631

branches/snap-stage3/src/libcollections/deque.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ pub mod bench {
115115
// measure
116116
let mut i = 0;
117117
bh.iter(|| {
118-
let x = map.find(&i);
118+
map.find(&i);
119119
i = (i + 1) % n;
120-
x
121120
})
122121
}
123122
}

0 commit comments

Comments
 (0)