Skip to content

Commit a426ec5

Browse files
committed
---
yaml --- r: 48439 b: refs/heads/snap-stage3 c: deaf3fd h: refs/heads/master i: 48437: 2d227b1 48435: 4cb23dd 48431: 7074b50 v: v3
1 parent 00b0ba0 commit a426ec5

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
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: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fe08364b3be5463e28650a6ed8cdd203b775208a
4+
refs/heads/snap-stage3: deaf3fdf6e5f4b0f8c5e0680f06a4d5809a034fb
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/ext/expand.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ pub fn expand_expr(extsbox: @mut SyntaxEnv,
3838
// entry-point for all syntax extensions.
3939
expr_mac(ref mac) => {
4040
match (*mac).node {
41-
// Token-tree macros:
41+
// Token-tree macros, these will be the only case when we're
42+
// finished transitioning.
4243
mac_invoc_tt(pth, ref tts) => {
43-
if (pth.idents.len() > 1u) {
44-
cx.span_fatal(
45-
pth.span,
46-
fmt!("expected macro name without module \
47-
separators"));
48-
}
44+
assert (vec::len(pth.idents) == 1u);
4945
/* using idents and token::special_idents would make the
5046
the macro names be hygienic */
5147
let extname = cx.parse_sess().interner.get(pth.idents[0]);
@@ -324,12 +320,8 @@ pub fn expand_stmt(extsbox: @mut SyntaxEnv,
324320
}
325321
_ => return orig(s, sp, fld)
326322
};
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);
333325
let extname = cx.parse_sess().interner.get(pth.idents[0]);
334326
let (fully_expanded, sp) = match (*extsbox).find(&extname) {
335327
None =>

branches/snap-stage3/src/test/compile-fail/macro-with-seps-err-msg.rs renamed to branches/snap-stage3/src/test/run-pass/issue-4448.rs

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

11-
// error-pattern:expected macro name without module separators
12-
1311
fn main() {
14-
globnar::brotz!();
15-
}
12+
let (port, chan) = comm::stream::<&static/str>();
1613

14+
do task::spawn {
15+
assert port.recv() == "hello, world";
16+
}
1717

18+
chan.send("hello, world");
19+
}

0 commit comments

Comments
 (0)