diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-12 12:20:10 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-17 08:10:56 +1000 |
| commit | eafd0dfd05cca581d66d83aab9549612ba2ed543 (patch) | |
| tree | ac234c9169db2ad104c0cc3727d19d017f792411 /compiler/rustc_parse/src/parser/stmt.rs | |
| parent | 5746c752f4e3f294cd252f7dd611a1908b12dd8e (diff) | |
| download | rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.tar.gz rust-eafd0dfd05cca581d66d83aab9549612ba2ed543.zip | |
Box the `MacCall` in various types.
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index ade0f4fbc86..d2e0b557f8c 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -181,7 +181,7 @@ impl<'a> Parser<'a> { None => unreachable!(), }; - let mac = MacCall { path, args, prior_type_ascription: self.last_type_ascription }; + let mac = P(MacCall { path, args, prior_type_ascription: self.last_type_ascription }); let kind = if (style == MacStmtStyle::Braces && self.token != token::Dot |
