Skip to content

Commit a50d343

Browse files
committed
use test
1 parent 60291f8 commit a50d343

File tree

7 files changed

+143
-61
lines changed

7 files changed

+143
-61
lines changed

library/proc_macro/src/bridge/standalone.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn parse_numeral(mut s: &str) -> Result<Literal> {
159159
}
160160
}
161161
let is_negative = s.starts_with('-');
162-
let non_negative = s.strip_prefix('-').unwrap();
162+
let non_negative = s.trim_prefix('-');
163163
if non_negative.starts_with("0b")
164164
|| non_negative.starts_with("0o")
165165
|| non_negative.starts_with("0x")
@@ -168,12 +168,12 @@ fn parse_numeral(mut s: &str) -> Result<Literal> {
168168
}
169169
let (s, suffix) = strip_number_suffix(s, FLOAT_SUFFIXES);
170170

171-
Ok(Literal { kind: LitKind::Float, symbol: todo!(), suffix, span: Span })
171+
Ok(Literal { kind: LitKind::Float, symbol: Symbol::new(s), suffix, span: Span })
172172
}
173173

174174
fn parse_integer(mut s: &str) -> Result<Literal> {
175175
let is_negative = s.starts_with('-');
176-
s = s.strip_prefix('-').unwrap();
176+
s = s.trim_prefix('-');
177177

178178
let (s, valid_chars) = if let Some(s) = s.strip_prefix("0b") {
179179
(s, '0'..='1')
@@ -272,6 +272,8 @@ impl server::TokenStream for NoRustc {
272272
}
273273

274274
fn from_str(&mut self, src: &str) -> Self::TokenStream {
275+
return TokenStream::new();
276+
275277
/// Returns the delimiter, and whether it is the opening form.
276278
fn char_to_delim(c: char) -> Option<(Delimiter, bool)> {
277279
Some(match c {

library/proc_macro/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(restricted_std)]
2929
#![feature(rustc_attrs)]
3030
#![feature(extend_one)]
31+
#![feature(trim_prefix_suffix)]
3132
#![recursion_limit = "256"]
3233
#![allow(internal_features)]
3334
#![deny(ffi_unwind_calls)]
@@ -101,15 +102,15 @@ enum StandaloneLevel {
101102
/// The standalone implementation is only used outside of procedural macros.
102103
FallbackOnly,
103104
/// The standalone implementation is always used, even in procedural macros.
104-
///
105+
///
105106
/// This does not actually work and should be removed before merging.
106107
Always,
107108
}
108109

109110
/// Enables the new experimental standalone backend, which allows calling the
110111
/// functions in this crate outside of procedural macros.
111-
///
112-
/// When stabilizing this feature, this function will be removed and all programs
112+
///
113+
/// When stabilizing this feature, this function will be removed and all programs
113114
/// will have the fallback activated automatically.
114115
#[unstable(feature = "proc_macro_standalone", issue = "130856")]
115116
pub fn enable_standalone() {

tests/ui/proc-macro/nonfatal-parsing.stderr renamed to tests/ui/proc-macro/nonfatal-parsing.in_macro.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ LL | c 'r'
2323
| +
2424

2525
error: unexpected closing delimiter: `)`
26-
--> $DIR/nonfatal-parsing.rs:14:5
26+
--> $DIR/nonfatal-parsing.rs:20:5
2727
|
2828
LL | nonfatal_parsing::run!();
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^ unexpected closing delimiter
3030
|
3131
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
3232

3333
error: unexpected closing delimiter: `]`
34-
--> $DIR/nonfatal-parsing.rs:14:5
34+
--> $DIR/nonfatal-parsing.rs:20:5
3535
|
3636
LL | nonfatal_parsing::run!();
3737
| -^^^^^^^^^^^^^^^^^^^^^^^
@@ -43,39 +43,39 @@ LL | nonfatal_parsing::run!();
4343
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
4444

4545
error: found invalid character; only `#` is allowed in raw string delimitation: \u{0}
46-
--> $DIR/nonfatal-parsing.rs:14:5
46+
--> $DIR/nonfatal-parsing.rs:20:5
4747
|
4848
LL | nonfatal_parsing::run!();
4949
| ^^^^^^^^^^^^^^^^^^^^^^^^
5050
|
5151
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
5252

5353
error: invalid digit for a base 2 literal
54-
--> $DIR/nonfatal-parsing.rs:14:5
54+
--> $DIR/nonfatal-parsing.rs:20:5
5555
|
5656
LL | nonfatal_parsing::run!();
5757
| ^^^^^^^^^^^^^^^^^^^^^^^^
5858
|
5959
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
6060

6161
error[E0768]: no valid digits found for number
62-
--> $DIR/nonfatal-parsing.rs:14:5
62+
--> $DIR/nonfatal-parsing.rs:20:5
6363
|
6464
LL | nonfatal_parsing::run!();
6565
| ^^^^^^^^^^^^^^^^^^^^^^^^
6666
|
6767
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
6868

6969
error: binary float literal is not supported
70-
--> $DIR/nonfatal-parsing.rs:14:5
70+
--> $DIR/nonfatal-parsing.rs:20:5
7171
|
7272
LL | nonfatal_parsing::run!();
7373
| ^^^^^^^^^^^^^^^^^^^^^^^^
7474
|
7575
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
7676

7777
error: character constant must be escaped: `'`
78-
--> $DIR/nonfatal-parsing.rs:14:5
78+
--> $DIR/nonfatal-parsing.rs:20:5
7979
|
8080
LL | nonfatal_parsing::run!();
8181
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -88,7 +88,7 @@ LL + nonfatal_parsing::run!(\';
8888
|
8989

9090
error: character constant must be escaped: `\n`
91-
--> $DIR/nonfatal-parsing.rs:14:5
91+
--> $DIR/nonfatal-parsing.rs:20:5
9292
|
9393
LL | nonfatal_parsing::run!();
9494
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -101,15 +101,15 @@ LL + nonfatal_parsing::run!(\n;
101101
|
102102

103103
error: too many `#` symbols: raw strings may be delimited by up to 255 `#` symbols, but found 256
104-
--> $DIR/nonfatal-parsing.rs:14:5
104+
--> $DIR/nonfatal-parsing.rs:20:5
105105
|
106106
LL | nonfatal_parsing::run!();
107107
| ^^^^^^^^^^^^^^^^^^^^^^^^
108108
|
109109
= note: this error originates in the macro `nonfatal_parsing::run` (in Nightly builds, run with -Z macro-backtrace for more info)
110110

111111
error: invalid digit for a base 2 literal
112-
--> $DIR/nonfatal-parsing.rs:14:5
112+
--> $DIR/nonfatal-parsing.rs:20:5
113113
|
114114
LL | nonfatal_parsing::run!();
115115
| ^^^^^^^^^^^^^^^^^^^^^^^^
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
Ok(Literal { kind: Integer, symbol: "123", suffix: None, span: #25 bytes(276..300) })
2-
Ok(Literal { kind: Str, symbol: "ab", suffix: None, span: #25 bytes(276..300) })
3-
Ok(Literal { kind: Char, symbol: "b", suffix: None, span: #25 bytes(276..300) })
4-
Ok(Literal { kind: Char, symbol: "b", suffix: None, span: #25 bytes(276..300) })
5-
Ok(Literal { kind: ByteStr, symbol: "b", suffix: None, span: #25 bytes(276..300) })
6-
Ok(Literal { kind: CStr, symbol: "b", suffix: None, span: #25 bytes(276..300) })
7-
Ok(Literal { kind: CStrRaw(0), symbol: "b", suffix: None, span: #25 bytes(276..300) })
8-
Ok(Literal { kind: Byte, symbol: "b", suffix: None, span: #25 bytes(276..300) })
9-
Ok(Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: #25 bytes(276..300) })
10-
Ok(Literal { kind: Integer, symbol: "-256", suffix: Some("u8"), span: #25 bytes(276..300) })
11-
Ok(TokenStream [Punct { ch: '-', spacing: Alone, span: #25 bytes(276..300) }, Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: #25 bytes(276..300) }])
12-
Ok(Literal { kind: Integer, symbol: "0b11111000000001111", suffix: Some("i16"), span: #25 bytes(276..300) })
13-
Ok(Literal { kind: Integer, symbol: "0xf32", suffix: None, span: #25 bytes(276..300) })
14-
Ok(Literal { kind: Integer, symbol: "0b0", suffix: Some("f32"), span: #25 bytes(276..300) })
15-
Ok(Literal { kind: Float, symbol: "2E4", suffix: None, span: #25 bytes(276..300) })
16-
Ok(Literal { kind: Float, symbol: "2.2E-4", suffix: Some("f64"), span: #25 bytes(276..300) })
17-
Ok(Literal { kind: Integer, symbol: "18", suffix: Some("u8E"), span: #25 bytes(276..300) })
18-
Ok(Literal { kind: Float, symbol: "18.0", suffix: Some("u8E"), span: #25 bytes(276..300) })
19-
Ok(Literal { kind: CStrRaw(1), symbol: "// /* // \n */", suffix: None, span: #25 bytes(276..300) })
20-
Ok(Literal { kind: Char, symbol: "\'", suffix: None, span: #25 bytes(276..300) })
21-
Ok(Literal { kind: Char, symbol: "\'", suffix: None, span: #25 bytes(276..300) })
22-
Ok(Literal { kind: StrRaw(255), symbol: "a", suffix: None, span: #25 bytes(276..300) })
23-
Ok(TokenStream [Ident { ident: "fn", span: #25 bytes(276..300) }, Ident { ident: "main", span: #25 bytes(276..300) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: #25 bytes(276..300) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "println", span: #25 bytes(276..300) }, Punct { ch: '!', spacing: Alone, span: #25 bytes(276..300) }, Group { delimiter: Parenthesis, stream: TokenStream [Literal { kind: Str, symbol: "Hello, world!", suffix: None, span: #25 bytes(276..300) }], span: #25 bytes(276..300) }], span: #25 bytes(276..300) }])
24-
Ok(TokenStream [Literal { kind: Integer, symbol: "18", suffix: None, span: #25 bytes(276..300) }, Punct { ch: '.', spacing: Alone, span: #25 bytes(276..300) }, Ident { ident: "u8E", span: #25 bytes(276..300) }])
25-
Ok(TokenStream [Literal { kind: Float, symbol: "18.0", suffix: Some("f32"), span: #25 bytes(276..300) }])
26-
Ok(TokenStream [Literal { kind: Float, symbol: "18.0", suffix: Some("f34"), span: #25 bytes(276..300) }])
27-
Ok(TokenStream [Literal { kind: Integer, symbol: "18", suffix: None, span: #25 bytes(276..300) }, Punct { ch: '.', spacing: Alone, span: #25 bytes(276..300) }, Ident { ident: "bu8", span: #25 bytes(276..300) }])
28-
Ok(TokenStream [Literal { kind: Integer, symbol: "3", suffix: None, span: #25 bytes(276..300) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #25 bytes(276..300) }])
29-
Ok(TokenStream [Literal { kind: Char, symbol: "c", suffix: None, span: #25 bytes(276..300) }])
1+
Ok(Literal { kind: Integer, symbol: "123", suffix: None, span: #25 bytes(460..484) })
2+
Ok(Literal { kind: Str, symbol: "ab", suffix: None, span: #25 bytes(460..484) })
3+
Ok(Literal { kind: Char, symbol: "b", suffix: None, span: #25 bytes(460..484) })
4+
Ok(Literal { kind: Char, symbol: "b", suffix: None, span: #25 bytes(460..484) })
5+
Ok(Literal { kind: ByteStr, symbol: "b", suffix: None, span: #25 bytes(460..484) })
6+
Ok(Literal { kind: CStr, symbol: "b", suffix: None, span: #25 bytes(460..484) })
7+
Ok(Literal { kind: CStrRaw(0), symbol: "b", suffix: None, span: #25 bytes(460..484) })
8+
Ok(Literal { kind: Byte, symbol: "b", suffix: None, span: #25 bytes(460..484) })
9+
Ok(Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: #25 bytes(460..484) })
10+
Ok(Literal { kind: Integer, symbol: "-256", suffix: Some("u8"), span: #25 bytes(460..484) })
11+
Ok(TokenStream [Punct { ch: '-', spacing: Alone, span: #25 bytes(460..484) }, Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: #25 bytes(460..484) }])
12+
Ok(Literal { kind: Integer, symbol: "0b11111000000001111", suffix: Some("i16"), span: #25 bytes(460..484) })
13+
Ok(Literal { kind: Integer, symbol: "0xf32", suffix: None, span: #25 bytes(460..484) })
14+
Ok(Literal { kind: Integer, symbol: "0b0", suffix: Some("f32"), span: #25 bytes(460..484) })
15+
Ok(Literal { kind: Float, symbol: "2E4", suffix: None, span: #25 bytes(460..484) })
16+
Ok(Literal { kind: Float, symbol: "2.2E-4", suffix: Some("f64"), span: #25 bytes(460..484) })
17+
Ok(Literal { kind: Integer, symbol: "18", suffix: Some("u8E"), span: #25 bytes(460..484) })
18+
Ok(Literal { kind: Float, symbol: "18.0", suffix: Some("u8E"), span: #25 bytes(460..484) })
19+
Ok(Literal { kind: CStrRaw(1), symbol: "// /* // \n */", suffix: None, span: #25 bytes(460..484) })
20+
Ok(Literal { kind: Char, symbol: "\'", suffix: None, span: #25 bytes(460..484) })
21+
Ok(Literal { kind: Char, symbol: "\'", suffix: None, span: #25 bytes(460..484) })
22+
Ok(Literal { kind: StrRaw(255), symbol: "a", suffix: None, span: #25 bytes(460..484) })
23+
Ok(TokenStream [Ident { ident: "fn", span: #25 bytes(460..484) }, Ident { ident: "main", span: #25 bytes(460..484) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: #25 bytes(460..484) }, Group { delimiter: Brace, stream: TokenStream [Ident { ident: "println", span: #25 bytes(460..484) }, Punct { ch: '!', spacing: Alone, span: #25 bytes(460..484) }, Group { delimiter: Parenthesis, stream: TokenStream [Literal { kind: Str, symbol: "Hello, world!", suffix: None, span: #25 bytes(460..484) }], span: #25 bytes(460..484) }], span: #25 bytes(460..484) }])
24+
Ok(TokenStream [Literal { kind: Integer, symbol: "18", suffix: None, span: #25 bytes(460..484) }, Punct { ch: '.', spacing: Alone, span: #25 bytes(460..484) }, Ident { ident: "u8E", span: #25 bytes(460..484) }])
25+
Ok(TokenStream [Literal { kind: Float, symbol: "18.0", suffix: Some("f32"), span: #25 bytes(460..484) }])
26+
Ok(TokenStream [Literal { kind: Float, symbol: "18.0", suffix: Some("f34"), span: #25 bytes(460..484) }])
27+
Ok(TokenStream [Literal { kind: Integer, symbol: "18", suffix: None, span: #25 bytes(460..484) }, Punct { ch: '.', spacing: Alone, span: #25 bytes(460..484) }, Ident { ident: "bu8", span: #25 bytes(460..484) }])
28+
Ok(TokenStream [Literal { kind: Integer, symbol: "3", suffix: None, span: #25 bytes(460..484) }, Literal { kind: Integer, symbol: "4", suffix: None, span: #25 bytes(460..484) }])
29+
Ok(TokenStream [Literal { kind: Char, symbol: "c", suffix: None, span: #25 bytes(460..484) }])
3030
Ok(TokenStream [])
3131
### ERRORS
3232
Err(LexError)
@@ -38,17 +38,17 @@ Err(LexError)
3838
Err(LexError)
3939
Err(LexError)
4040
Err(LexError)
41-
Ok(TokenStream [Ident { ident: "r", span: #25 bytes(276..300) }, Literal { kind: Char, symbol: "r", suffix: None, span: #25 bytes(276..300) }])
42-
Ok(TokenStream [Ident { ident: "c", span: #25 bytes(276..300) }, Literal { kind: Char, symbol: "r", suffix: None, span: #25 bytes(276..300) }])
43-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(276..300) }])
44-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b", suffix: Some("f32"), span: #25 bytes(276..300) }])
45-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b0.0", suffix: Some("f32"), span: #25 bytes(276..300) }])
46-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "'''", suffix: None, span: #25 bytes(276..300) }])
47-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "'\n'", suffix: None, span: #25 bytes(276..300) }])
48-
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(276..300) }])
49-
Ok(Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(276..300) })
50-
Ok(Literal { kind: ErrWithGuar, symbol: "0b", suffix: Some("f32"), span: #25 bytes(276..300) })
51-
Ok(Literal { kind: ErrWithGuar, symbol: "0b0.0", suffix: Some("f32"), span: #25 bytes(276..300) })
52-
Ok(Literal { kind: ErrWithGuar, symbol: "'''", suffix: None, span: #25 bytes(276..300) })
53-
Ok(Literal { kind: ErrWithGuar, symbol: "'\n'", suffix: None, span: #25 bytes(276..300) })
41+
Ok(TokenStream [Ident { ident: "r", span: #25 bytes(460..484) }, Literal { kind: Char, symbol: "r", suffix: None, span: #25 bytes(460..484) }])
42+
Ok(TokenStream [Ident { ident: "c", span: #25 bytes(460..484) }, Literal { kind: Char, symbol: "r", suffix: None, span: #25 bytes(460..484) }])
43+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(460..484) }])
44+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b", suffix: Some("f32"), span: #25 bytes(460..484) }])
45+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b0.0", suffix: Some("f32"), span: #25 bytes(460..484) }])
46+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "'''", suffix: None, span: #25 bytes(460..484) }])
47+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "'\n'", suffix: None, span: #25 bytes(460..484) }])
48+
Ok(TokenStream [Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(460..484) }])
49+
Ok(Literal { kind: ErrWithGuar, symbol: "0b2", suffix: None, span: #25 bytes(460..484) })
50+
Ok(Literal { kind: ErrWithGuar, symbol: "0b", suffix: Some("f32"), span: #25 bytes(460..484) })
51+
Ok(Literal { kind: ErrWithGuar, symbol: "0b0.0", suffix: Some("f32"), span: #25 bytes(460..484) })
52+
Ok(Literal { kind: ErrWithGuar, symbol: "'''", suffix: None, span: #25 bytes(460..484) })
53+
Ok(Literal { kind: ErrWithGuar, symbol: "'\n'", suffix: None, span: #25 bytes(460..484) })
5454
Err(LexError)

tests/ui/proc-macro/nonfatal-parsing.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
//@ needs-unwind
33
//@ edition:2024
44
//@ dont-require-annotations: ERROR
5-
// FIXME: should be a check-pass test
5+
//@ revisions: in_macro standalone
6+
//@[in_macro] check-fail
7+
//@[standalone] run-pass
8+
//@[standalone] check-run-results
9+
// FIXME: in_macro should be a check-pass test
10+
#![feature(proc_macro_standalone)]
611

712
extern crate proc_macro;
813
extern crate nonfatal_parsing;
@@ -11,7 +16,11 @@ extern crate nonfatal_parsing;
1116
mod body;
1217

1318
fn main() {
19+
#[cfg(in_macro)]
1420
nonfatal_parsing::run!();
15-
// FIXME: enable this once the standalone backend exists
16-
// body::run();
21+
22+
#[cfg(standalone)]
23+
proc_macro::enable_standalone();
24+
#[cfg(standalone)]
25+
body::run();
1726
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
1 ) 2 did not panic
2+
( x [ ) ] did not panic
3+
r# did not panic
4+
r################################################################################################################################################################################################################################################################"a"################################################################################################################################################################################################################################################################ did not panic
5+
1 ) 2 did not panic
6+
( x [ ) ] did not panic
7+
r# did not panic
8+
r################################################################################################################################################################################################################################################################"a"################################################################################################################################################################################################################################################################ did not panic
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Ok(Literal { kind: Float, symbol: "123", suffix: None, span: Span })
2+
Ok(Literal { kind: Str, symbol: "ab", suffix: None, span: Span })
3+
Err(LexError)
4+
Err(LexError)
5+
Ok(Literal { kind: ByteStr, symbol: "b", suffix: None, span: Span })
6+
Ok(Literal { kind: CStr, symbol: "b", suffix: None, span: Span })
7+
Ok(Literal { kind: CStrRaw(0), symbol: "b", suffix: None, span: Span })
8+
Err(LexError)
9+
Ok(Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: Span })
10+
Ok(Literal { kind: Integer, symbol: "256", suffix: Some("u8"), span: Span })
11+
Ok(TokenStream [])
12+
Ok(Literal { kind: Integer, symbol: "11111000000001111", suffix: Some("i16"), span: Span })
13+
Err(LexError)
14+
Err(LexError)
15+
Ok(Literal { kind: Float, symbol: "2E4", suffix: None, span: Span })
16+
Ok(Literal { kind: Float, symbol: "2.2E-4", suffix: Some("f64"), span: Span })
17+
Ok(Literal { kind: Float, symbol: "18u8E", suffix: None, span: Span })
18+
Ok(Literal { kind: Float, symbol: "18.0u8E", suffix: None, span: Span })
19+
Ok(Literal { kind: CStrRaw(1), symbol: "// /* // \n */", suffix: None, span: Span })
20+
Err(LexError)
21+
Err(LexError)
22+
Err(LexError)
23+
Ok(TokenStream [])
24+
Ok(TokenStream [])
25+
Ok(TokenStream [])
26+
Ok(TokenStream [])
27+
Ok(TokenStream [])
28+
Ok(TokenStream [])
29+
Ok(TokenStream [])
30+
Ok(TokenStream [])
31+
### ERRORS
32+
Err(LexError)
33+
Err(LexError)
34+
Ok(Literal { kind: Float, symbol: "0 ", suffix: None, span: Span })
35+
Ok(Literal { kind: Float, symbol: "0//", suffix: None, span: Span })
36+
Ok(Literal { kind: Float, symbol: "3//\n4", suffix: None, span: Span })
37+
Ok(Literal { kind: Float, symbol: "18.u8E", suffix: None, span: Span })
38+
Err(LexError)
39+
Err(LexError)
40+
Err(LexError)
41+
Ok(TokenStream [])
42+
Ok(TokenStream [])
43+
Ok(TokenStream [])
44+
Ok(TokenStream [])
45+
Ok(TokenStream [])
46+
Ok(TokenStream [])
47+
Ok(TokenStream [])
48+
Ok(TokenStream [])
49+
Ok(TokenStream [])
50+
Ok(TokenStream [])
51+
Ok(TokenStream [])
52+
Ok(TokenStream [])
53+
Ok(Literal { kind: Float, symbol: "1 ) 2", suffix: None, span: Span })
54+
Err(LexError)
55+
Err(LexError)
56+
Err(LexError)
57+
Err(LexError)
58+
Err(LexError)
59+
Err(LexError)
60+
Err(LexError)
61+
Err(LexError)
62+
Err(LexError)

0 commit comments

Comments
 (0)