]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: [E0229] associated type bindings error
authorMuhammad Mahad <mahadtxt@gmail.com>
Mon, 3 Jul 2023 16:08:33 +0000 (21:08 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:31 +0000 (18:49 +0100)
Associated type binding outside of type
parameter Declaration and where Clause

gcc/rust/ChangeLog:

* typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args):
called error function

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-tyty-subst.cc

index 252b292f60e7750686d6453d9c0032381dd30731..9c5c76dd8d220b4e5da1b5af5342072eebfa19b3 100644 (file)
@@ -606,7 +606,8 @@ SubstitutionRef::get_mappings_from_generic_args (HIR::GenericArgs &args)
          for (auto &binding : args.get_binding_args ())
            r.add_range (binding.get_locus ());
 
-         rust_error_at (r, "associated type bindings are not allowed here");
+         rust_error_at (r, ErrorCode ("E0229"),
+                        "associated type bindings are not allowed here");
          return SubstitutionArgumentMappings::error ();
        }
     }