Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkov

Point at type ascription before macro invocation on expansion parse error

Fix https://github.com/rust-lang/rust/issues/47666. Follow up to https://github.com/rust-lang/rust/pull/62791.

r? @petrochenkov
This commit is contained in:
bors
2019-08-04 16:19:04 +00:00
9 changed files with 57 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ pub fn expand_assert<'cx>(
))
}).into(),
delim: MacDelimiter::Parenthesis,
prior_type_ascription: None,
};
let if_expr = cx.expr_if(
sp,