]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [E0271] Type mismatch between associated type trait.
authorMuhammad Mahad <mahadtxt@gmail.com>
Tue, 15 Aug 2023 17:24:10 +0000 (22:24 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:33 +0000 (19:00 +0100)
commit0e65b1f9b377eb6a2464905c4060dc86d972d9d9
tree3758ea45d3f7d5dd6fce5443aed537d758e7a7b2
parent3d59270c819f1e2876b3ca97bcd0c9ac2fbf57f6
gccrs: [E0271] Type mismatch between associated type trait.

Added rich location and error code.

gcc/rust/ChangeLog:

* typecheck/rust-tyty.cc (BaseType::satisfies_bound):
Added errorcode and user-friendly error message.

gcc/testsuite/ChangeLog:

* rust/compile/issue-1725-2.rs:
Updated dejagnu message.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-tyty.cc
gcc/testsuite/rust/compile/issue-1725-2.rs