Grammaticalinate an error message.

This commit is contained in:
Paul Stansifer 2012-11-08 22:29:53 -05:00 committed by Graydon Hoare
parent 9845a4be5a
commit cafea5ecb6

View File

@ -225,8 +225,8 @@ fn expand_item_mac(exts: HashMap<~str, syntax_extension>,
cx.bt_pop();
return maybe_it
}
_ => cx.span_fatal(it.span,
fmt!("%s is not a legal here", *extname))
_ => cx.span_fatal(
it.span, fmt!("%s! is not legal in item position", *extname))
}
}
_ => cx.span_bug(it.span, ~"invalid item macro invocation")