[gcc r14-7898] gccrs: [E0412] used type name not in scope
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 18:05:31 GMT 2024
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;
More information about the Gcc-cvs
mailing list