]> git.ipfire.org Git - thirdparty/gcc.git/commit
Check for mutable references in const functions
authorDave <dme2223@gmail.com>
Mon, 19 Dec 2022 16:59:00 +0000 (10:59 -0600)
committerDave Evans <dave@dmetwo.org>
Mon, 2 Jan 2023 23:56:59 +0000 (17:56 -0600)
commit5918059fd3a28915546c08e0d3adbc62b9ca3977
treecf506d7058b56b388fcc23bd4c51079b39fe714a
parent0152926ab36ba52153f3f457f6f3bb02bb274073
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

Signed-off-by: Dave Evans <dave@dmetwo.org>
gcc/rust/checks/errors/rust-const-checker.cc
gcc/testsuite/rust/compile/const10.rs [new file with mode: 0644]