diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-09-17 20:11:23 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:37 +0100 |
commit | e47a980566050a290e1fbf9fb4792065ea772a47 (patch) | |
tree | 3ef43e89a2592692ac89240d0f108f89cb5c1100 /gcc/rust/backend/rust-constexpr.cc | |
parent | 718b65a93d194a97a88f96780b97023ce9ed9378 (diff) | |
download | gcc-e47a980566050a290e1fbf9fb4792065ea772a47.zip gcc-e47a980566050a290e1fbf9fb4792065ea772a47.tar.gz gcc-e47a980566050a290e1fbf9fb4792065ea772a47.tar.bz2 |
gccrs: port over readonly_error from c-family for lvalue assignment checks
Fixes #2391
gcc/rust/ChangeLog:
* Make-lang.in: fixup formatting
* resolve/rust-ast-resolve-expr.cc (ResolveExpr::visit): remove old check
* rust-session-manager.cc (Session::compile_crate): call new lint
* resolve/rust-ast-verify-assignee.h: Removed.
* checks/errors/rust-readonly-check.cc: New file.
* checks/errors/rust-readonly-check.h: New file.
gcc/testsuite/ChangeLog:
* rust/compile/wrong_lhs_assignment.rs: update error message
* rust/compile/issue-2391.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.cc')
0 files changed, 0 insertions, 0 deletions