From: Pierre-Emmanuel Patry <[email protected]>

Node streaming started from the root and did not walk through the
different preludes within the forever stack. This enables a more complete
representation of the forever stack.

gcc/rust/ChangeLog:

        * resolve/rust-forever-stack.hxx: Stream extern and lang prelude nodes.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/bf5e098f17b815b0eb4440284f68f27993f5f2c3

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4758

 gcc/rust/resolve/rust-forever-stack.hxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/rust/resolve/rust-forever-stack.hxx 
b/gcc/rust/resolve/rust-forever-stack.hxx
index d7b121a6d..788584bf9 100644
--- a/gcc/rust/resolve/rust-forever-stack.hxx
+++ b/gcc/rust/resolve/rust-forever-stack.hxx
@@ -748,6 +748,10 @@ ForeverStack<N>::as_debug_string () const
   std::stringstream stream;
 
   stream_node (stream, 0, root);
+  stream << "Extern prelude \n";
+  stream_node (stream, 0, extern_prelude);
+  stream << "Lang prelude \n";
+  stream_node (stream, 0, lang_prelude);
 
   return stream.str ();
 }
-- 
2.55.0

Reply via email to