diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-03-13 16:21:44 +0100 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-03-26 17:35:02 +0000 |
commit | 0874163bbf8b13350ec20bcba766d436147bbfa5 (patch) | |
tree | 07928a204efe3d0901105a4b636925689bf17b11 | |
parent | f95ca338eccb99f0b14ae9484e9614b9cfb333e0 (diff) | |
download | gcc-0874163bbf8b13350ec20bcba766d436147bbfa5.zip gcc-0874163bbf8b13350ec20bcba766d436147bbfa5.tar.gz gcc-0874163bbf8b13350ec20bcba766d436147bbfa5.tar.bz2 |
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.h | 1 |
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; } |