aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorDave <dme2223@gmail.com>2022-12-19 10:59:00 -0600
committerArthur Cohen <arthur.cohen@embecosm.com>2023-04-06 10:47:16 +0200
commitd9e05700ac3085f29e95d53b3ec59c22adbc7c71 (patch)
treeeb8b097393929fe9fd7ce3ef4abe4405085bb67c /gcc/rust/hir/tree
parent776ff053800ad989564b0b3c2904fb072abaf422 (diff)
downloadgcc-d9e05700ac3085f29e95d53b3ec59c22adbc7c71.zip
gcc-d9e05700ac3085f29e95d53b3ec59c22adbc7c71.tar.gz
gcc-d9e05700ac3085f29e95d53b3ec59c22adbc7c71.tar.bz2
gccrs: Check for mutable references in const functions
Use StackedContext instead. Fix error string Signed-off-by: Dave Evans <dave@dmetwo.org> (Squashed commits) Check for mutable references in const functions using StackedContext gcc/rust/ChangeLog: * checks/errors/rust-const-checker.cc (ConstChecker::visit): Use StackedContext class. gcc/testsuite/ChangeLog: * rust/compile/const10.rs: New test. Signed-off-by: Dave Evans <dave@dmetwo.org>
Diffstat (limited to 'gcc/rust/hir/tree')
0 files changed, 0 insertions, 0 deletions