public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Fix nullptr as the result is not setup in this case
@ 2022-06-08 11:48 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:57acd1e20828fabe9cfe3b741680f06a1f21251e

commit 57acd1e20828fabe9cfe3b741680f06a1f21251e
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Fri Nov 5 10:38:45 2021 +0000

    Fix nullptr as the result is not setup in this case

Diff:
---
 gcc/rust/typecheck/rust-hir-type-check-type.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/typecheck/rust-hir-type-check-type.cc b/gcc/rust/typecheck/rust-hir-type-check-type.cc
index ee2ffe1cfc5..ca7b91b0c06 100644
--- a/gcc/rust/typecheck/rust-hir-type-check-type.cc
+++ b/gcc/rust/typecheck/rust-hir-type-check-type.cc
@@ -95,7 +95,7 @@ TypeCheckType::visit (HIR::TypePath &path)
 		     "TypePath %s declares generic arguments but "
 		     "the type %s does not have any",
 		     path.as_string ().c_str (),
-		     translated->as_string ().c_str ());
+		     path_type->as_string ().c_str ());
     }
   else
     {


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

only message in thread, other threads:[~2022-06-08 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:48 [gcc/devel/rust/master] Fix nullptr as the result is not setup in this case 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).