]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Remove unnecessary usage of Location copy constructor
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 10 Jul 2023 18:43:18 +0000 (14:43 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:36 +0000 (18:49 +0100)
commit805cb985847ab6fec91081ee625240e2d9129a1c
tree5eed9553d91bd3c6c2d729f3e18513b1c7401efb
parente659eca9f3b9c167c37a7862cb45d996fb784a6f
gccrs: Remove unnecessary usage of Location copy constructor

gcc/rust/ChangeLog:

* ast/rust-expr.h
(MetaItemPathLit::get_locus): Remove copy construction.
* backend/rust-constexpr.cc
(eval_constant_expression): Likewise.
(is_valid_constexpr_fn): Likewise.
* util/rust-token-converter.cc
(convert): Likewise.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-expr.h
gcc/rust/backend/rust-constexpr.cc
gcc/rust/util/rust-token-converter.cc