aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-attributes.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-12-16 14:51:17 +0000
committerPhilip Herron <philip.herron@embecosm.com>2025-01-10 10:43:13 +0000
commitc957f18575fbe8208e01674cd446652323a7eb1b (patch)
tree09ea31fe6aae2b177cd467f8090ad8c1ea0f19c9 /gcc/rust/util/rust-attributes.cc
parentf68fbff016d4faacd54de63549d43255e1193688 (diff)
downloadgcc-c957f18575fbe8208e01674cd446652323a7eb1b.zip
gcc-c957f18575fbe8208e01674cd446652323a7eb1b.tar.gz
gcc-c957f18575fbe8208e01674cd446652323a7eb1b.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/util/rust-attributes.cc')
0 files changed, 0 insertions, 0 deletions