]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: add helper to check for a const or static context
authorPhilip Herron <herron.philip@googlemail.com>
Mon, 17 Apr 2023 21:04:11 +0000 (22:04 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:12 +0000 (18:34 +0100)
commit0c6338ddb64b8a3fc24470b3040e09ade2f772d8
tree1f66c71c6ee82a439c7c53ca764982cc37a8d6f5
parente3a2f3b1931b10afb43893b476e7e27b8ade007e
gccrs: add helper to check for a const or static context

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check.h: new helper
* typecheck/rust-typecheck-context.cc (TypeCheckContext::have_function_context):
implementation

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-hir-type-check.h
gcc/rust/typecheck/rust-typecheck-context.cc