File tree Expand file tree Collapse file tree 6 files changed +8
-13
lines changed Expand file tree Collapse file tree 6 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5
- refs/heads/try: 36909c7575e2ddfe2925423aceb62d82ae8208b2
5
+ refs/heads/try: bf519dad6b4deeaeebb0c13a88e09f77758431a3
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change 1
- Version 0.6 (April 2013)
1
+ Version 0.6 (March 2013)
2
2
---------------------------
3
3
4
4
* ~2100 changes, numerous bugfixes
Original file line number Diff line number Diff line change @@ -726,8 +726,7 @@ pub fn each_split_within<'a>(ss: &'a str,
726
726
727
727
( B , Cr , UnderLim ) => { B }
728
728
( 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!") }
731
730
(B, Cr, OverLim) => { slice(); slice_start = last_start; B }
732
731
(B, Ws, UnderLim) => { last_end = i; C }
733
732
(B, Ws, OverLim) => { last_end = i; slice(); A }
Original file line number Diff line number Diff line change @@ -762,7 +762,8 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
762
762
optflag ( ~"", ~"test", ~"Build a test harness") ,
763
763
optopt ( ~"", ~"target",
764
764
~"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
766
767
for detail) ", ~"TRIPLE ") ,
767
768
optopt ( ~"", ~"android-cross-path",
768
769
~"The path to the Android NDK ", "PATH" ) ,
Original file line number Diff line number Diff line change @@ -3107,15 +3107,11 @@ pub impl Parser {
3107
3107
// XXX: clownshoes
3108
3108
let ident = special_idents:: clownshoes_extensions;
3109
3109
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
-
3114
3110
// Parse the trait.
3115
3111
let mut ty = self . parse_ty ( false ) ;
3116
3112
3117
3113
// 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 ") {
3119
3115
// New-style trait. Reinterpret the type as a trait.
3120
3116
let opt_trait_ref = match ty.node {
3121
3117
ty_path(path, node_id) => {
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // xfail-test
12
11
fn id < T > ( t : T ) -> T { t }
13
12
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
15
14
16
15
fn main ( ) {
17
16
let v = & 5 ;
You can’t perform that action at this time.
0 commit comments