]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: gccrs:[E0046] Missing Items in Trait Implementation
authorMuhammad Mahad <mahadtxt@gmail.com>
Tue, 4 Jul 2023 11:48:20 +0000 (16:48 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:31 +0000 (18:49 +0100)
missing foo in implementation of trait 'Foo'

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-item.cc: called error function.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-item.cc

index 3acbb5e050e2e31de90c6796bb36d465e8b02771..6c526302beb4fd7a78365a93727d731bc482a7eb 100644 (file)
@@ -659,7 +659,8 @@ TypeCheckItem::validate_trait_impl_block (
              r.add_range (missing_trait_item.get_locus ());
            }
 
-         rust_error_at (r, "missing %s in implementation of trait %<%s%>",
+         rust_error_at (r, ErrorCode ("E0046"),
+                        "missing %s in implementation of trait %<%s%>",
                         missing_items_buf.c_str (),
                         trait_reference->get_name ().c_str ());
        }