From 45ca46018f034e50d37e6fdcd3d0de9c0ce74927 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Wed, 16 Feb 2022 13:03:45 +0100 Subject: macrotranscriber: Add location info --- gcc/rust/parse/rust-parse-impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/rust/parse/rust-parse-impl.h') diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index b500c87..ef0ad40 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -1691,7 +1691,8 @@ Parser::parse_macro_rule () } // parse transcriber (this is just a delim token tree) - AST::MacroTranscriber transcriber (parse_delim_token_tree ()); + Location token_tree_loc = lexer.peek_token ()->get_locus (); + AST::MacroTranscriber transcriber (parse_delim_token_tree (), token_tree_loc); return AST::MacroRule (std::move (matcher), std::move (transcriber)); } -- cgit v1.1