]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: [E0412] used type name not in scope
authorMuhammad Mahad <mahadtxt@gmail.com>
Mon, 7 Aug 2023 11:55:02 +0000 (16:55 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:28 +0000 (19:00 +0100)
gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-type.cc (ResolveRelativeTypePath::go):
Added ErrorCode.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/resolve/rust-ast-resolve-type.cc

index bf8cf8af090d50b785b7250c9031264e33d7de1d..bbb05380d2a927ed1cada7b8731abf169bdc547a 100644 (file)
@@ -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;