diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2025-04-17 19:23:12 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-04-18 10:39:59 +0000 |
commit | f220fe8cf73f56421f2f5659054006e38c3cd2b1 (patch) | |
tree | e1496fc4df4f5e5b58bd4eee0ff76c1e20a6030d /gcc | |
parent | e77b7c22ab159f967fc2e0bca59468d0df08a023 (diff) | |
download | gcc-f220fe8cf73f56421f2f5659054006e38c3cd2b1.zip gcc-f220fe8cf73f56421f2f5659054006e38c3cd2b1.tar.gz gcc-f220fe8cf73f56421f2f5659054006e38c3cd2b1.tar.bz2 |
nr2.0: Remove unnecessary copy of Node
gcc/rust/ChangeLog:
* resolve/rust-forever-stack.hxx
(ForeverStack::resolve_path): Pass instance of Node to lambda by
reference instead of by value.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/resolve/rust-forever-stack.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-forever-stack.hxx b/gcc/rust/resolve/rust-forever-stack.hxx index e9024b5..947b72f 100644 --- a/gcc/rust/resolve/rust-forever-stack.hxx +++ b/gcc/rust/resolve/rust-forever-stack.hxx @@ -676,7 +676,7 @@ ForeverStack<N>::resolve_path ( insert_segment_resolution); }) .and_then ([this, &segments, &insert_segment_resolution] ( - Node final_node) -> tl::optional<Rib::Definition> { + Node &final_node) -> tl::optional<Rib::Definition> { // leave resolution within impl blocks to type checker if (final_node.rib.kind == Rib::Kind::TraitOrImpl) return tl::nullopt; |