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 @@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 36909c7575e2ddfe2925423aceb62d82ae8208b2
17
+ refs/heads/auto: bf519dad6b4deeaeebb0c13a88e09f77758431a3
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
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