From 0874163bbf8b13350ec20bcba766d436147bbfa5 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 13 Mar 2024 16:21:44 +0100 Subject: 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 --- gcc/rust/util/rust-canonical-path.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') 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; } -- cgit v1.1