aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse-impl.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-12-16 14:51:17 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:56:56 +0100
commit770ca551cf9c591ba195e6c12c8a24948d5b289b (patch)
tree91e55b4d1a85f822ce72749920c7a9d9a8b895ba /gcc/rust/parse/rust-parse-impl.h
parent76565cabf2842b7dff20f4a3cbe2808fec7d15da (diff)
downloadgcc-770ca551cf9c591ba195e6c12c8a24948d5b289b.zip
gcc-770ca551cf9c591ba195e6c12c8a24948d5b289b.tar.gz
gcc-770ca551cf9c591ba195e6c12c8a24948d5b289b.tar.bz2
gccrs: improve mutability checks
This ensures that we handle var decls readonly checks much better Addresses: Rust-GCC#807 Rust-GCC#3287 gcc/rust/ChangeLog: * checks/errors/rust-readonly-check.cc (check_decl): improve mut check (emit_error): helper (check_modify_expr): likewise (readonly_walk_fn): reuse helper (ReadonlyCheck::Lint): cleanup context each run gcc/testsuite/ChangeLog: * rust/execute/torture/builtin_macro_include_bytes.rs: needs mut * rust/compile/mutability_checks1.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
0 files changed, 0 insertions, 0 deletions