diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-08-07 16:55:02 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:00:28 +0100 |
commit | c75db430f035043dacd6f3b676e4beb1c93c9033 (patch) | |
tree | dffb257d8f395eea754c26fbe02877c05fe77410 /gcc | |
parent | 5249b87d9aa7ebbdb7e007b223c62db057efb161 (diff) | |
download | gcc-c75db430f035043dacd6f3b676e4beb1c93c9033.zip gcc-c75db430f035043dacd6f3b676e4beb1c93c9033.tar.gz gcc-c75db430f035043dacd6f3b676e4beb1c93c9033.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.cc | 2 |
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 bf8cf8a..bbb0538 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; |