Skip to content

Commit 41ab651

Browse files
committed
---
yaml --- r: 50354 b: refs/heads/auto c: ef56aa6 h: refs/heads/master v: v3
1 parent 2a1a6b0 commit 41ab651

File tree

7 files changed

+14
-20
lines changed

7 files changed

+14
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 499f96dca12210df847c05ebf7649c7b0af860f7
17+
refs/heads/auto: ef56aa62fb4d672d04e5634bad001d427aa6b553
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/RELEASES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 0.6 (March 2013)
1+
Version 0.6 (April 2013)
22
---------------------------
33

44
* ~2100 changes, numerous bugfixes

branches/auto/src/libcore/prelude.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pub use ops::{Shl, Shr, Index};
2121
pub use option::{Option, Some, None};
2222
pub use result::{Result, Ok, Err};
2323

24+
/* Reexported functions */
25+
26+
pub use io::{print, println};
27+
2428
/* Reexported types and traits */
2529

2630
pub use clone::Clone;

branches/auto/src/libcore/str.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ pub fn each_split_within<'a>(ss: &'a str,
726726

727727
(B, Cr, UnderLim) => { B }
728728
(B, Cr, OverLim) if (i - last_start + 1) > lim
729-
=> { fail!(~"word longer than limit!") }
729+
=> fail!(fmt!("word starting with %? longer than limit!",
730+
self::slice(ss, last_start, i + 1))),
730731
(B, Cr, OverLim) => { slice(); slice_start = last_start; B }
731732
(B, Ws, UnderLim) => { last_end = i; C }
732733
(B, Ws, OverLim) => { last_end = i; slice(); A }

branches/auto/src/librustc/driver/driver.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
762762
optflag(~"", ~"test", ~"Build a test harness"),
763763
optopt(~"", ~"target",
764764
~"Target triple cpu-manufacturer-kernel[-os]
765-
to compile for (see
766-
http://sources.redhat.com/autobook/autobook/autobook_17.html
765+
to compile for (see chapter 3.4 of http://www.sourceware.org/autobook/
767766
for detail)", ~"TRIPLE"),
768767
optopt(~"", ~"android-cross-path",
769768
~"The path to the Android NDK", "PATH"),

branches/auto/src/libsyntax/parse/parser.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,11 +3107,15 @@ pub impl Parser {
31073107
// XXX: clownshoes
31083108
let ident = special_idents::clownshoes_extensions;
31093109

3110+
// Special case: if the next identifier that follows is '(', don't
3111+
// allow this to be parsed as a trait.
3112+
let could_be_trait = *self.token != token::LPAREN;
3113+
31103114
// Parse the trait.
31113115
let mut ty = self.parse_ty(false);
31123116

31133117
// Parse traits, if necessary.
3114-
let opt_trait = if self.eat_keyword(&~"for") {
3118+
let opt_trait = if could_be_trait && self.eat_keyword(&~"for") {
31153119
// New-style trait. Reinterpret the type as a trait.
31163120
let opt_trait_ref = match ty.node {
31173121
ty_path(path, node_id) => {

branches/auto/src/test/run-pass/issue-4333.rs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)