aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-10-19 14:53:43 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-10-19 15:01:53 +0200
commit89490980726d298311107a452bdebeb43a2ff7e6 (patch)
tree29a06a0125db7dd6a057f5ff367d00e99cade8d4 /gcc/rust/expand/rust-macro-expand.h
parent540d896c3fa745efdc96ad34e7e5c585f9b7b93f (diff)
downloadgcc-89490980726d298311107a452bdebeb43a2ff7e6.zip
gcc-89490980726d298311107a452bdebeb43a2ff7e6.tar.gz
gcc-89490980726d298311107a452bdebeb43a2ff7e6.tar.bz2
ast: Improve Fragment API
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.h')
-rw-r--r--gcc/rust/expand/rust-macro-expand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h
index 3453058..6253a4e 100644
--- a/gcc/rust/expand/rust-macro-expand.h
+++ b/gcc/rust/expand/rust-macro-expand.h
@@ -344,7 +344,7 @@ struct MacroExpander
auto new_nodes = expanded_fragment.get_nodes ();
std::move (new_nodes.begin (), new_nodes.end (),
std::back_inserter (accumulator));
- expanded_fragment = AST::Fragment (accumulator);
+ expanded_fragment = AST::Fragment::complete (accumulator);
}
expansion_depth--;
}