Skip to content

Commit acbf100

Browse files
committed
---
yaml --- r: 64919 b: refs/heads/snap-stage3 c: 4bad515 h: refs/heads/master i: 64917: eb56808 64915: aed0ffa 64911: f77e699 v: v3
1 parent f97a2b6 commit acbf100

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0e2a0863507783d552ae6816bb4b0f061494c6b9
4+
refs/heads/snap-stage3: 4bad51585424cee9c97491c1aed7cf27a3cdcb68
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/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)