Skip to content

Commit 187f75b

Browse files
committed
---
yaml --- r: 51106 b: refs/heads/try c: ef56aa6 h: refs/heads/master v: v3
1 parent 1e3d505 commit 187f75b

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: 499f96dca12210df847c05ebf7649c7b0af860f7
5+
refs/heads/try: ef56aa62fb4d672d04e5634bad001d427aa6b553
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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/try/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/try/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/try/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/try/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/try/src/test/run-pass/issue-4333.rs

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

0 commit comments

Comments
 (0)