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
commit f01b9f803b
9 changed files with 57 additions and 13 deletions

View file

@ -1306,6 +1306,7 @@ pub struct Mac_ {
pub path: Path,
pub delim: MacDelimiter,
pub tts: TokenStream,
pub prior_type_ascription: Option<(Span, bool)>,
}
#[derive(Copy, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Debug)]