File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5
- refs/heads/try: fe08364b3be5463e28650a6ed8cdd203b775208a
5
+ refs/heads/try: deaf3fdf6e5f4b0f8c5e0680f06a4d5809a034fb
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -38,14 +38,10 @@ pub fn expand_expr(extsbox: @mut SyntaxEnv,
38
38
// entry-point for all syntax extensions.
39
39
expr_mac( ref mac) => {
40
40
match ( * mac) . node {
41
- // Token-tree macros:
41
+ // Token-tree macros, these will be the only case when we're
42
+ // finished transitioning.
42
43
mac_invoc_tt( pth, ref tts) => {
43
- if ( pth. idents . len ( ) > 1 u) {
44
- cx. span_fatal (
45
- pth. span ,
46
- fmt ! ( "expected macro name without module \
47
- separators") ) ;
48
- }
44
+ assert ( vec:: len ( pth. idents ) == 1 u) ;
49
45
/* using idents and token::special_idents would make the
50
46
the macro names be hygienic */
51
47
let extname = cx. parse_sess ( ) . interner . get ( pth. idents [ 0 ] ) ;
@@ -324,12 +320,8 @@ pub fn expand_stmt(extsbox: @mut SyntaxEnv,
324
320
}
325
321
_ => return orig(s, sp, fld)
326
322
};
327
- if (pth.idents.len() > 1u) {
328
- cx.span_fatal(
329
- pth.span,
330
- fmt!("expected macro name without module \
331
- separators" ) ) ;
332
- }
323
+
324
+ assert(vec::len(pth.idents) == 1u);
333
325
let extname = cx.parse_sess().interner.get(pth.idents[0]);
334
326
let (fully_expanded, sp) = match (*extsbox).find(&extname) {
335
327
None =>
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // error-pattern:expected macro name without module separators
12
-
13
11
fn main ( ) {
14
- globnar:: brotz!( ) ;
15
- }
12
+ let ( port, chan) = comm:: stream :: < & static /str > ( ) ;
16
13
14
+ do task:: spawn {
15
+ assert port. recv( ) == "hello, world" ;
16
+ }
17
17
18
+ chan. send ( "hello, world" ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments