Support prefix notation for vstore strings. Closes #2906.
This commit is contained in:
parent
e4de160222
commit
985b52be6d
46 changed files with 252 additions and 237 deletions
|
@ -217,7 +217,7 @@ fn building_library(req_crate_type: crate_type, crate: @ast::crate,
|
|||
alt syntax::attr::first_attr_value_str_by_name(
|
||||
crate.node.attrs,
|
||||
"crate_type") {
|
||||
option::some(@"lib") { true }
|
||||
option::some(@"lib"/~) { true }
|
||||
_ { false }
|
||||
}
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ mod test {
|
|||
style: ast::attr_outer,
|
||||
value: ast_util::respan(ast_util::dummy_sp(),
|
||||
ast::meta_name_value(
|
||||
@"crate_type",
|
||||
@"crate_type"/~,
|
||||
ast_util::respan(ast_util::dummy_sp(),
|
||||
ast::lit_str(@t)))),
|
||||
is_sugared_doc: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue