Skip to content

Commit 9f8f84c

Browse files
committed
---
yaml --- r: 51103 b: refs/heads/try c: bf519da h: refs/heads/master i: 51101: fca0561 51099: 32c7ffb 51095: e12c48b 51087: ad8f331 51071: 61bca62 v: v3
1 parent cf12ead commit 9f8f84c

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
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: 36909c7575e2ddfe2925423aceb62d82ae8208b2
5+
refs/heads/try: bf519dad6b4deeaeebb0c13a88e09f77758431a3
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 (April 2013)
1+
Version 0.6 (March 2013)
22
---------------------------
33

44
* ~2100 changes, numerous bugfixes

branches/try/src/libcore/str.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,7 @@ 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!(fmt!("word starting with %? longer than limit!",
730-
self::slice(ss, last_start, i + 1))),
729+
=> { fail!(~"word longer than limit!") }
731730
(B, Cr, OverLim) => { slice(); slice_start = last_start; B }
732731
(B, Ws, UnderLim) => { last_end = i; C }
733732
(B, Ws, OverLim) => { last_end = i; slice(); A }

branches/try/src/librustc/driver/driver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ 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 chapter 3.4 of http://www.sourceware.org/autobook/
765+
to compile for (see
766+
http://sources.redhat.com/autobook/autobook/autobook_17.html
766767
for detail)", ~"TRIPLE"),
767768
optopt(~"", ~"android-cross-path",
768769
~"The path to the Android NDK", "PATH"),

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,15 +3107,11 @@ 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-
31143110
// Parse the trait.
31153111
let mut ty = self.parse_ty(false);
31163112

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

branches/try/src/test/compile-fail/issue-4335.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,10 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
1211
fn id<T>(t: T) -> T { t }
1312

14-
fn f<T>(v: &'r T) -> &'r fn()->T { id::<&'r fn()->T>(|| *v) } //~ ERROR ???
13+
fn f<'r, T>(v: &'r T) -> &'r fn()->T { id::<&'r fn()->T>(|| *v) } //~ ERROR cannot infer an appropriate lifetime due to conflicting requirements
1514

1615
fn main() {
1716
let v = &5;

0 commit comments

Comments
 (0)