public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8559] gccrs: toplevel: Use DefaultResolver for Function
@ 2024-01-30 11:59 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-30 11:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1ee01fd1572b46324c72d2380bedc58dfddd469d
commit r14-8559-g1ee01fd1572b46324c72d2380bedc58dfddd469d
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Wed Nov 15 11:33:25 2023 +0100
gccrs: toplevel: Use DefaultResolver for Function
gcc/rust/ChangeLog:
* resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Use
the DefaultResolver in the toplevel visitor.
Diff:
---
gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc
index fc62db729b58..fbded3e49e18 100644
--- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc
+++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc
@@ -185,10 +185,7 @@ TopLevel::visit (AST::Function &function)
insert_or_error_out (function.get_function_name (), function,
Namespace::Values);
- auto def_fn
- = [this, &function] () { function.get_definition ()->accept_vis (*this); };
-
- ctx.scoped (Rib::Kind::Function, function.get_node_id (), def_fn);
+ DefaultResolver::visit (function);
}
void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-30 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 11:59 [gcc r14-8559] gccrs: toplevel: Use DefaultResolver for Function Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).