aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-07-19 20:54:28 +0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:55:57 +0100
commitf67f840d291516112b530d961fc73d5a2ace77e2 (patch)
tree103e1dddb9550ba4c8e68b338176d3966b9f4aaf /gcc/rust/backend/rust-compile-resolve-path.cc
parentdbe2f8ad4dbaad9e6f718eca311cce5bffd02bc3 (diff)
downloadgcc-f67f840d291516112b530d961fc73d5a2ace77e2.zip
gcc-f67f840d291516112b530d961fc73d5a2ace77e2.tar.gz
gcc-f67f840d291516112b530d961fc73d5a2ace77e2.tar.bz2
gccrs: [E0268] break or continue used outside of loop
Refactored error description similiar to rustc. gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): refactored and call error function. gcc/testsuite/ChangeLog: * rust/compile/break1.rs: Modified to pass test case. * rust/compile/continue1.rs: likewise. * rust/compile/break_continue_outside_loop.rs: New test. Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions