Skip to content

Commit 15e4fae

Browse files
committed
---
yaml --- r: 123697 b: refs/heads/try c: c2dd553 h: refs/heads/master i: 123695: ba61646 v: v3
1 parent 138f732 commit 15e4fae

22 files changed

+74
-239
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: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: 91357a9c4eebf9ac9ff2b5c4ab5b27496cf818cd
5+
refs/heads/try: c2dd553bed572368953801dd1d339013f58b53d6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/test/compile-fail/lex-illegal-num-char-escape.rs renamed to branches/try/src/test/compile-fail/lex-bad-char-literals.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,19 @@ static s: &'static str =
3131

3232
static s2: &'static str =
3333
"\u23q" //~ ERROR: illegal character in numeric character escape
34+
//~^ ERROR: numeric character escape is too short
35+
;
36+
37+
static c: char =
38+
'\●' //~ ERROR: unknown character escape
39+
;
40+
41+
static s: &'static str =
42+
"\●" //~ ERROR: unknown character escape
43+
;
44+
45+
// THIS MUST BE LAST, since unterminated character constants kill the lexer
46+
47+
static c: char =
48+
'//~ ERROR: unterminated character constant
3449
;
35-
//~^^ ERROR: numeric character escape is too short

branches/try/src/test/compile-fail/lex-bad-fp-base-2.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-3.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-4.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-5.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-6.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-7.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-8.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-base-9.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-bad-fp-lit.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
fn main() {
12+
0o1.0; //~ ERROR: octal float literal is not supported
13+
0o2f32; //~ ERROR: octal float literal is not supported
14+
0o3.0f32; //~ ERROR: octal float literal is not supported
15+
0o4e4; //~ ERROR: octal float literal is not supported
16+
0o5.0e5; //~ ERROR: octal float literal is not supported
17+
0o6e6f32; //~ ERROR: octal float literal is not supported
18+
0o7.0e7f64; //~ ERROR: octal float literal is not supported
19+
0x8.0e+9; //~ ERROR: hexadecimal float literal is not supported
20+
0x9.0e-9; //~ ERROR: hexadecimal float literal is not supported
21+
}
22+
23+
static F: f32 =
24+
1e+ //~ ERROR: scan_exponent: bad fp literal
25+
;
26+
27+
28+
static F: f32 =
29+
0x539.0 //~ ERROR: hexadecimal float literal is not supported
30+
;
31+
32+
static I: int =
33+
99999999999999999999999999999999 //~ ERROR: int literal is too large
34+
;
35+
36+
static J: int =
37+
99999999999999999999999999999999u32 //~ ERROR: int literal is too large
38+
;
39+
40+
static A: int =
41+
0x //~ ERROR: no valid digits
42+
;
43+
static B: int =
44+
0xu32 //~ ERROR: no valid digits
45+
;
46+
static C: int =
47+
0ou32 //~ ERROR: no valid digits
48+
;
49+
static D: int =
50+
0bu32 //~ ERROR: no valid digits
51+
;
52+
static E: int =
53+
0b //~ ERROR: no valid digits
54+
;
55+
static F: int =
56+
0o //~ ERROR: no valid digits
57+
;

branches/try/src/test/compile-fail/lex-bad-fp-base-1.rs renamed to branches/try/src/test/compile-fail/lex-bad-token.rs

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

11-
fn main() {
12-
let a = 0o1.0; //~ ERROR: octal float literal is not supported
13-
}
11+
//~ ERROR: unknown start of token

branches/try/src/test/compile-fail/lex-hex-float-lit.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-int-lit-too-large-2.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-int-lit-too-large.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-no-valid-digits-2.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-no-valid-digits.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-unknown-char-escape.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-unknown-start-tok.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-unknown-str-escape.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

branches/try/src/test/compile-fail/lex-unterminated-char-const.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)