public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-7898] gccrs: [E0412] used type name not in scope
@ 2024-01-16 18:05 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:05 UTC (permalink / raw)
  To: gcc-cvs

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

commit r14-7898-gc75db430f035043dacd6f3b676e4beb1c93c9033
Author: Muhammad Mahad <mahadtxt@gmail.com>
Date:   Mon Aug 7 16:55:02 2023 +0500

    gccrs: [E0412] used type name not in scope
    
    gcc/rust/ChangeLog:
    
            * resolve/rust-ast-resolve-type.cc (ResolveRelativeTypePath::go):
            Added ErrorCode.
    
    Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>

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

diff --git a/gcc/rust/resolve/rust-ast-resolve-type.cc b/gcc/rust/resolve/rust-ast-resolve-type.cc
index bf8cf8af090..bbb05380d2a 100644
--- a/gcc/rust/resolve/rust-ast-resolve-type.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-type.cc
@@ -240,7 +240,7 @@ ResolveRelativeTypePath::go (AST::TypePath &path, NodeId &resolved_node_id)
 	}
       else if (is_first_segment)
 	{
-	  rust_error_at (segment->get_locus (),
+	  rust_error_at (segment->get_locus (), ErrorCode::E0412,
 			 "failed to resolve TypePath: %s in this scope",
 			 segment->as_string ().c_str ());
 	  return false;

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

only message in thread, other threads:[~2024-01-16 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:05 [gcc r14-7898] gccrs: [E0412] used type name not in scope Arthur Cohen

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).