diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-09-14 17:38:06 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 16:52:25 +0200 |
commit | 53c74beb3a15a477f4fef770fe6abccbdb124fb7 (patch) | |
tree | bfea8932ad69e212388afcce3d430df3c48bb6d8 /gcc/rust/resolve/rust-forever-stack.hxx | |
parent | 786bc62f957e373d40a8c11fa4e607383ab2e2f1 (diff) | |
download | gcc-53c74beb3a15a477f4fef770fe6abccbdb124fb7.zip gcc-53c74beb3a15a477f4fef770fe6abccbdb124fb7.tar.gz gcc-53c74beb3a15a477f4fef770fe6abccbdb124fb7.tar.bz2 |
gccrs: nr2.0: Start using newtype pattern for Usage and Declaration
gcc/rust/ChangeLog:
* resolve/rust-name-resolution-context.cc (NameResolutionContext::map_usage):
Use newtype pattern.
(NameResolutionContext::lookup): Likewise.
* resolve/rust-name-resolution-context.h (class Usage): New class.
(class Definition): Likewise.
* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Create instances
of Usage and Definition.
Diffstat (limited to 'gcc/rust/resolve/rust-forever-stack.hxx')
0 files changed, 0 insertions, 0 deletions