]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Typecheck: lifetime interning and resolution tool
authorJakub Dupak <dev@jakubdupak.com>
Wed, 10 Jan 2024 12:12:48 +0000 (13:12 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 11:40:21 +0000 (12:40 +0100)
commitc49e45d7e849c016bd9513447ff7341a9bcb1a05
tree9213c4e184463d0ff6719b5dc8a1fb09739f7c64
parent5eb4e5093aaf6964370b7daa231b926ca592eeb0
gccrs: Typecheck: lifetime interning and resolution tool

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check.h (class Lifetime): add interned lifetime class
* typecheck/rust-typecheck-context.cc (TypeCheckContext::TypeCheckContext): add
resolution tool
(TypeCheckContext::intern_lifetime): add method to intern lifetime from tyctx
(TypeCheckContext::lookup_lifetime): add method to lookup lifetime from tyctx
(TypeCheckContext::intern_and_insert_lifetime): add a helper method

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/rust/typecheck/rust-hir-type-check.h
gcc/rust/typecheck/rust-typecheck-context.cc