From: Pierre-Emmanuel Patry Date: Wed, 13 Mar 2024 15:21:44 +0000 (+0100) Subject: gccrs: Update assignment operator with cratenum X-Git-Tag: basepoints/gcc-16~6979 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b87c06fd351e0df489ac451b2b2a8c3c3c44ec72;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/util/rust-canonical-path.h b/gcc/rust/util/rust-canonical-path.h index f2865eba9ae..969ac7f7cc1 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; }