aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-03-13 16:21:44 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 16:52:27 +0200
commitb87c06fd351e0df489ac451b2b2a8c3c3c44ec72 (patch)
tree729c9d866a3c3e4292ed2afdb592a3c8012dac0f
parent5540afbd0136a6e78710445a89eb4af44fd14292 (diff)
downloadgcc-b87c06fd351e0df489ac451b2b2a8c3c3c44ec72.zip
gcc-b87c06fd351e0df489ac451b2b2a8c3c3c44ec72.tar.gz
gcc-b87c06fd351e0df489ac451b2b2a8c3c3c44ec72.tar.bz2
gccrs: Update assignment operator with cratenum
Crate number was not assigned with the other fields in the assignment operator overload of a CannonicalPath. gcc/rust/ChangeLog: * util/rust-canonical-path.h: Also assign crate number. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--gcc/rust/util/rust-canonical-path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-canonical-path.h b/gcc/rust/util/rust-canonical-path.h
index f2865eb..969ac7f 100644
--- a/gcc/rust/util/rust-canonical-path.h
+++ b/gcc/rust/util/rust-canonical-path.h
@@ -51,6 +51,7 @@ public:
CanonicalPath &operator= (const CanonicalPath &other)
{
segs = other.segs;
+ crate_num = other.crate_num;
return *this;
}