From: Muhammad Mahad Date: Mon, 7 Aug 2023 11:55:02 +0000 (+0500) Subject: gccrs: [E0412] used type name not in scope X-Git-Tag: basepoints/gcc-15~2241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75db430f035043dacd6f3b676e4beb1c93c9033;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/resolve/rust-ast-resolve-type.cc b/gcc/rust/resolve/rust-ast-resolve-type.cc index bf8cf8af090d..bbb05380d2a9 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;