Skip to content

Commit 871ac5b

Browse files
committed
---
yaml --- r: 69546 b: refs/heads/auto c: 4bad515 h: refs/heads/master v: v3
1 parent 20779c0 commit 871ac5b

File tree

5 files changed

+12
-48
lines changed

5 files changed

+12
-48
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ 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: 0e2a0863507783d552ae6816bb4b0f061494c6b9
17+
refs/heads/auto: 4bad51585424cee9c97491c1aed7cf27a3cdcb68
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/mk/tests.mk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,20 +215,25 @@ else
215215
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
216216
$(S)src/rt/*/*.cpp \
217217
$(S)src/rt/*/*/*.cpp \
218-
$(S)src/rustllvm/*.cpp)
219-
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
218+
$(S)srcrustllvm/*.cpp)
219+
ALL_CS := $(filter-out $(S)src/rt/bigint/bigint_ext.cpp \
220+
$(S)src/rt/bigint/bigint_int.cpp \
221+
$(S)src/rt/miniz.cpp \
220222
$(S)src/rt/linenoise/linenoise.c \
221223
$(S)src/rt/linenoise/utf8.c \
222224
,$(ALL_CS))
223225
ALL_HS := $(wildcard $(S)src/rt/*.h \
224226
$(S)src/rt/*/*.h \
225227
$(S)src/rt/*/*/*.h \
226-
$(S)src/rustllvm/*.h)
228+
$(S)srcrustllvm/*.h)
227229
ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
228230
$(S)src/rt/vg/memcheck.h \
231+
$(S)src/rt/uthash/uthash.h \
232+
$(S)src/rt/uthash/utlist.h \
229233
$(S)src/rt/msvc/typeof.h \
230234
$(S)src/rt/msvc/stdint.h \
231235
$(S)src/rt/msvc/inttypes.h \
236+
$(S)src/rt/bigint/bigint.h \
232237
$(S)src/rt/linenoise/linenoise.h \
233238
$(S)src/rt/linenoise/utf8.h \
234239
,$(ALL_HS))

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use std::to_bytes;
3030
/// The specific types of unsupported syntax
3131
#[deriving(Eq)]
3232
pub enum ObsoleteSyntax {
33-
ObsoleteLowerCaseKindBounds,
3433
ObsoleteLet,
3534
ObsoleteFieldTerminator,
3635
ObsoleteStructCtor,
@@ -96,12 +95,6 @@ impl ParserObsoleteMethods for Parser {
9695
/// Reports an obsolete syntax non-fatal error.
9796
pub fn obsolete(&self, sp: span, kind: ObsoleteSyntax) {
9897
let (kind_str, desc) = match kind {
99-
ObsoleteLowerCaseKindBounds => (
100-
"lower-case kind bounds",
101-
"the `send`, `copy`, `const`, and `owned` \
102-
kinds are represented as traits now, and \
103-
should be camel cased"
104-
),
10598
ObsoleteLet => (
10699
"`let` in field declaration",
107100
"declare fields as `field: Type`"

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

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use parse::lexer::TokenAndSpan;
7171
use parse::obsolete::{ObsoleteClassTraits};
7272
use parse::obsolete::{ObsoleteLet, ObsoleteFieldTerminator};
7373
use parse::obsolete::{ObsoleteMoveInit, ObsoleteBinaryMove, ObsoleteSwap};
74-
use parse::obsolete::{ObsoleteSyntax, ObsoleteLowerCaseKindBounds};
74+
use parse::obsolete::ObsoleteSyntax;
7575
use parse::obsolete::{ObsoleteUnsafeBlock, ObsoleteImplSyntax};
7676
use parse::obsolete::{ObsoleteMutOwnedPointer};
7777
use parse::obsolete::{ObsoleteMutVector, ObsoleteImplVisibility};
@@ -3309,30 +3309,8 @@ impl Parser {
33093309
self.bump();
33103310
}
33113311
token::MOD_SEP | token::IDENT(*) => {
3312-
let obsolete_bound = match *self.token {
3313-
token::MOD_SEP => false,
3314-
token::IDENT(sid, _) => {
3315-
match self.id_to_str(sid).as_slice() {
3316-
"send" |
3317-
"copy" |
3318-
"const" |
3319-
"owned" => {
3320-
self.obsolete(
3321-
*self.span,
3322-
ObsoleteLowerCaseKindBounds);
3323-
self.bump();
3324-
true
3325-
}
3326-
_ => false
3327-
}
3328-
}
3329-
_ => fail!()
3330-
};
3331-
3332-
if !obsolete_bound {
3333-
let tref = self.parse_trait_ref();
3334-
result.push(TraitTyParamBound(tref));
3335-
}
3312+
let tref = self.parse_trait_ref();
3313+
result.push(TraitTyParamBound(tref));
33363314
}
33373315
_ => break,
33383316
}

branches/auto/src/test/compile-fail/obsolete-syntax.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn f1<T:copy>() -> T { }
12-
//~^ ERROR obsolete syntax: lower-case kind bounds
13-
14-
fn f1<T:send>() -> T { }
15-
//~^ ERROR obsolete syntax: lower-case kind bounds
16-
17-
fn f1<T:const>() -> T { }
18-
//~^ ERROR obsolete syntax: lower-case kind bounds
19-
20-
fn f1<T:owned>() -> T { }
21-
//~^ ERROR obsolete syntax: lower-case kind bounds
22-
2311
struct s {
2412
let foo: (),
2513
//~^ ERROR obsolete syntax: `let` in field declaration

0 commit comments

Comments
 (0)