public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] ast: Add missing constructor implementation
@ 2023-04-06 21:35 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-06 21:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a05f114acf901f35bca002fd02073d944fb7da80

commit a05f114acf901f35bca002fd02073d944fb7da80
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Mon Mar 27 12:53:29 2023 +0200

    ast: Add missing constructor implementation
    
    Add a missing constructor implementation for TokenStream objects.
    
    gcc/rust/ChangeLog:
    
            * ast/rust-ast-tokenstream.cc (TokenStream::TokenStream): Add
            constructor.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/rust/ast/rust-ast-tokenstream.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc
index 95ded2481ae..ad0426dd019 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.cc
+++ b/gcc/rust/ast/rust-ast-tokenstream.cc
@@ -20,6 +20,9 @@
 namespace Rust {
 namespace AST {
 
+TokenStream::TokenStream (std::vector<TokenPtr> &container) : tokens (container)
+{}
+
 std::vector<TokenPtr>
 TokenStream::collect_tokens () const
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-06 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 21:35 [gcc/devel/rust/master] ast: Add missing constructor implementation Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).