diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-27 16:36:09 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:02 +0100 |
commit | 55a3049525498a4c06e47c21c15f6b3d6eb1be29 (patch) | |
tree | a75534d507c6db57dd34039278d4b1b44fc073a4 /gcc/cppdefault.h | |
parent | 0680907b3b19273b908c91306932abbf82f85cce (diff) | |
download | gcc-55a3049525498a4c06e47c21c15f6b3d6eb1be29.zip gcc-55a3049525498a4c06e47c21c15f6b3d6eb1be29.tar.gz gcc-55a3049525498a4c06e47c21c15f6b3d6eb1be29.tar.bz2 |
gccrs: [E0571] break with argument in non-loop loop
Refactored error message similiar to rustc
& called error function.
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
refactored error message & called error function.
gcc/testsuite/ChangeLog:
* rust/compile/break2.rs: Modified file to pass test case.
* rust/compile/break_with_value_inside_loop.rs: New test.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/cppdefault.h')
0 files changed, 0 insertions, 0 deletions