aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-08-07 16:55:02 +0500
committerPhilip Herron <philip.herron@embecosm.com>2023-08-09 09:19:46 +0000
commit74b83511e4ea68cc491d1f174a763bd87b449796 (patch)
treede82e6da858d2f9a52c960927a1a7e83a2fc08dc /gcc
parent07046b16e917207f1d2d2e4e066ca1e3f2946369 (diff)
downloadgcc-74b83511e4ea68cc491d1f174a763bd87b449796.zip
gcc-74b83511e4ea68cc491d1f174a763bd87b449796.tar.gz
gcc-74b83511e4ea68cc491d1f174a763bd87b449796.tar.bz2
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve-type.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve-type.cc b/gcc/rust/resolve/rust-ast-resolve-type.cc
index d08ffa1..73230ed 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;