Skip to content

Commit cafea5e

Browse files
paulstansifergraydon
authored andcommitted
Grammaticalinate an error message.
1 parent 9845a4b commit cafea5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ fn expand_item_mac(exts: HashMap<~str, syntax_extension>,
225225
cx.bt_pop();
226226
return maybe_it
227227
}
228-
_ => cx.span_fatal(it.span,
229-
fmt!("%s is not a legal here", *extname))
228+
_ => cx.span_fatal(
229+
it.span, fmt!("%s! is not legal in item position", *extname))
230230
}
231231
}
232232
_ => cx.span_bug(it.span, ~"invalid item macro invocation")

0 commit comments

Comments
 (0)