syntax: parse outer attributes in quote_item! calls.

Fixes #14857.
This commit is contained in:
Huon Wilson 2014-06-13 09:40:10 +10:00 committed by Alex Crichton
parent 9d5ec04d18
commit f907d9772c
5 changed files with 12 additions and 7 deletions

View file

@ -117,8 +117,7 @@ pub fn parse_item_from_source_str(name: String,
sess: &ParseSess)
-> Option<Gc<ast::Item>> {
let mut p = new_parser_from_source_str(sess, cfg, name, source);
let attrs = p.parse_outer_attributes();
maybe_aborted(p.parse_item(attrs),p)
maybe_aborted(p.parse_item_with_outer_attributes(),p)
}
pub fn parse_meta_from_source_str(name: String,