Write metadata for more meta_item types. Issue #487
This commit is contained in:
parent
f53c4f79d7
commit
cab73f8897
10 changed files with 95 additions and 55 deletions
|
@ -2142,7 +2142,7 @@ fn parse_meta_item(&parser p) -> @ast::meta_item {
|
|||
p.bump();
|
||||
auto value = p.get_str(s);
|
||||
auto hi = p.get_hi_pos();
|
||||
ret @spanned(lo, hi, ast::meta_key_value(ident, value));
|
||||
ret @spanned(lo, hi, ast::meta_name_value(ident, value));
|
||||
}
|
||||
case (_) {
|
||||
p.fatal("Metadata items must be string literals");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue