https://gcc.gnu.org/g:b87c06fd351e0df489ac451b2b2a8c3c3c44ec72
commit r15-2574-gb87c06fd351e0df489ac451b2b2a8c3c3c44ec72 Author: Pierre-Emmanuel Patry <pierre-emmanuel.pa...@embecosm.com> Date: Wed Mar 13 16:21:44 2024 +0100 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.pa...@embecosm.com> Diff: --- gcc/rust/util/rust-canonical-path.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/rust/util/rust-canonical-path.h b/gcc/rust/util/rust-canonical-path.h index f2865eba9ae4..969ac7f7cc18 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; }